Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在模拟器Pad模式下,出现错误。模拟器版本号:iPad Air #6

Closed
ZhangDeLei opened this issue Apr 12, 2019 · 0 comments
Closed

Comments

@ZhangDeLei
Copy link

ZhangDeLei commented Apr 12, 2019

Launching lib/main.dart on iPad Pro (12.9-inch) (3rd generation) in debug mode...
Removing obsolete reference to flutter_assets from Runner.app
Warning: CocoaPods not installed. Skipping pod install.
CocoaPods is used to retrieve the iOS platform side's plugin code that responds to your plugin usage on the Dart side.
Without resolving iOS dependencies with CocoaPods, plugins will not work on iOS.
For more info, see https://flutter.io/platform-plugins
To install:
brew install cocoapods
pod setup

Running Xcode build...
Xcode build done. 15.6s
Failed to build iOS app
Error output from Xcode build:

** BUILD FAILED **

Xcode's output:

=== BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Debug ===
Debug.xcconfig line 1: Unable to find included file "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
Debug.xcconfig line 1: Unable to find included file "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
/Users/anins/Documents/Project_Private_Github_Flutter/flustars/example/ios/Runner/GeneratedPluginRegistrant.m:6:9: fatal error: 'flustars/FlustarsPlugin.h' file not found
#import <flustars/FlustarsPlugin.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

Could not build the application for the simulator.
Error launching application on iPad Pro (12.9-inch) (3rd generation).

错误内容如上,在执行了brew install cocoapods && pod setup 也是不行的。

但是在iPhone模式下可以,很奇怪啊。

通过实验,在terminal中通过flutter run进行运行是可以的,然后关闭这个,再次通过ide的build工具运行,虽然还是出现让 brew install cocoapods && pod setup 这个错误,但是可以进行运行起来了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants