-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
Labels
platform-iosiOS applications specificallyiOS applications specificallyt: xcode"xcodebuild" on iOS and general Xcode project management"xcodebuild" on iOS and general Xcode project managementtoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.
Description
When attempting to run the iOS version of any app, I get the following errors on the console:
Launching lib/main.dart on iPhone 11 in debug mode...
Running pod install...
CocoaPods' output:
↳
[!] Invalid `Podfile` file: no implicit conversion of nil into String.
# from /Users/JLB/Development/FlutterProjects/ShopApp/shop_app/ios/Podfile:41
# -------------------------------------------
#
> copied_flutter_dir = File.join(__dir__, 'Flutter')
# # copied_flutter_dir = File.join('.', 'Flutter')
# -------------------------------------------
/Users/JLB/.rvm/gems/ruby-2.1.2@global/gems/cocoapods-core-1.8.4/lib/cocoapods-core/podfile.rb:301:in `rescue in block in from_ruby'
/Users/JLB/.rvm/gems/ruby-2.1.2@global/gems/cocoapods-core-1.8.4/lib/cocoapods-core/podfile.rb:295:in `block in from_ruby'
/Users/JLB/.rvm/gems/ruby-2.1.2@global/gems/cocoapods-core-1.8.4/lib/cocoapods-core/podfile.rb:50:in `instance_eval'
/Users/JLB/.rvm/gems/ruby-2.1.2@global/gems/cocoapods-core-1.8.4/lib/cocoapods-core/podfile.rb:50:in `initialize'
/Users/JLB/.rvm/gems/ruby-2.1.2@global/gems/cocoapods-core-1.8.4/lib/cocoapods-core/podfile.rb:293:in `new'
/Users/JLB/.rvm/gems/ruby-2.1.2@global/gems/cocoapods-core-1.8.4/lib/cocoapods-core/podfile.rb:293:in `from_ruby'
/Users/JLB/.rvm/gems/ruby-2.1.2@global/gems/cocoapods-core-1.8.4/lib/cocoapods-core/podfile.rb:259:in `from_file'
/Users/JLB/.rvm/gems/ruby-2.1.2/gems/cocoapods-1.8.4/lib/cocoapods/config.rb:200:in `podfile'
/Users/JLB/.rvm/gems/ruby-2.1.2/gems/cocoapods-1.8.4/lib/cocoapods/command.rb:150:in `verify_podfile_exists!'
/Users/JLB/.rvm/gems/ruby-2.1.2/gems/cocoapods-1.8.4/lib/cocoapods/command/install.rb:46:in `run'
/Users/JLB/.rvm/gems/ruby-2.1.2@global/gems/claide-1.0.2/lib/claide/command.rb:334:in `run'
/Users/JLB/.rvm/gems/ruby-2.1.2/gems/cocoapods-1.8.4/lib/cocoapods/command.rb:52:in `run'
/Users/JLB/.rvm/gems/ruby-2.1.2/gems/cocoapods-1.8.4/bin/pod:55:in `<top (required)>'
/Users/JLB/.rvm/gems/ruby-2.1.2/bin/pod:23:in `load'
/Users/JLB/.rvm/gems/ruby-2.1.2/bin/pod:23:in `<main>'
/Users/JLB/.rvm/gems/ruby-2.1.2/bin/ruby_executable_hooks:15:in `eval'
/Users/JLB/.rvm/gems/ruby-2.1.2/bin/ruby_executable_hooks:15:in `<main>'
Error running pod install
Error launching application on iPhone 11.
The solution is to change line 41 in the Podfile from:
copied_flutter_dir = File.join(__dir__, ‘Flutter’)
to:
copied_flutter_dir = File.join(‘.’, ‘Flutter’)
Flutter version: 1.12.13+hotfix.9
Dart version: 2.7.2
Metadata
Metadata
Assignees
Labels
platform-iosiOS applications specificallyiOS applications specificallyt: xcode"xcodebuild" on iOS and general Xcode project management"xcodebuild" on iOS and general Xcode project managementtoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.