Closed pradeep1806 closed 3 years ago
Same I am unable to run this in iOS
⋊> ~/t/1/b/f/example on master ⨯ flutter doctor -v 09:53:31
[✓] Flutter (Channel stable, 1.22.5, on Mac OS X 10.15.7 19H15 darwin-x64, locale en)
• Flutter version 1.22.5 at /Users/reza/development/flutter
• Framework revision 7891006299 (6 weeks ago), 2020-12-10 11:54:40 -0800
• Engine revision ae90085a84
• Dart version 2.10.4
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
• Android SDK at /Users/reza/Library/Android/sdk
• Platform android-30, build-tools 30.0.2
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 12.3)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 12.3, Build version 12C33
• CocoaPods version 1.10.0
[!] Android Studio (version 4.1)
• Android Studio at /Applications/Android Studio.app/Contents
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
[✓] VS Code (version 1.52.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.18.1
[✓] Connected device (1 available)
• iPhone Reza (mobile) • d81429f0469936d3ba37d0788ced05e6d5924288 • ios • iOS 14.3
Error
Automatically signing iOS for device deployment using specified development team in Xcode project: XXF87Q6A89
Running pod install... 1.5s
Running Xcode build...
Xcode build done. 4.9s
Failed to build iOS app
Error output from Xcode build:
↳
2021-01-18 09:53:25.933 xcodebuild[68989:6265454] DVTAssertions: Warning in
/Library/Caches/com.apple.xbs/Sources/DVTiOSFrameworks/DVTiOSFrameworks-17705/DTDeviceKitBase/DTDKRemoteDeviceData.m:371
Details: (null) deviceType from d81429f0469936d3ba37d0788ced05e6d5924288 was NULL when -platform called.
Object: <DTDKMobileDeviceToken: 0x7fe739afddc0>
Method: -platform
Thread: <NSThread: 0x7fe73472b640>{number = 7, name = (null)}
Please file a bug at https://feedbackassistant.apple.com with this warning message and any useful information you can provide.
2021-01-18 09:53:26.160 xcodebuild[68989:6265458] DVTAssertions: Warning in
/Library/Caches/com.apple.xbs/Sources/DVTiOSFrameworks/DVTiOSFrameworks-17705/DTDeviceKitBase/DTDKRemoteDeviceData.m:371
Details: (null) deviceType from d81429f0469936d3ba37d0788ced05e6d5924288 was NULL when -platform called.
Object: <DTDKMobileDeviceToken: 0x7fe739afddc0>
Method: -platform
Thread: <NSThread: 0x7fe7326f2cf0>{number = 10, name = (null)}
Please file a bug at https://feedbackassistant.apple.com with this warning message and any useful information you can provide.
** BUILD FAILED **
Xcode's output:
↳
<module-includes>:1:9: note: in file included from <module-includes>:1:
#import "Headers/flutter_star_prnt-umbrella.h"
^
/Users/reza/tmp/1/blue/flutter_star_prnt/example/ios/Pods/Target Support Files/flutter_star_prnt/flutter_star_prnt-umbrella.h:13:9: note: in file
included from /Users/reza/tmp/1/blue/flutter_star_prnt/example/ios/Pods/Target Support Files/flutter_star_prnt/flutter_star_prnt-umbrella.h:13:
#import "FlutterStarPrntPlugin.h"
^
/Users/reza/.pub-cache/hosted/pub.dartlang.org/flutter_star_prnt-1.0.4/ios/Classes/FlutterStarPrntPlugin.h:2:9: error: include of non-modular header
inside framework module 'flutter_star_prnt.FlutterStarPrntPlugin':
'/Users/reza/tmp/1/blue/flutter_star_prnt/example/ios/Pods/StarIO/StarIO.framework/Headers/SMPortSwift.h'
#import <StarIO/SMPortSwift.h>
^
<module-includes>:1:9: note: in file included from <module-includes>:1:
#import "Headers/flutter_star_prnt-umbrella.h"
^
/Users/reza/tmp/1/blue/flutter_star_prnt/example/ios/Pods/Target Support Files/flutter_star_prnt/flutter_star_prnt-umbrella.h:13:9: note: in file
included from /Users/reza/tmp/1/blue/flutter_star_prnt/example/ios/Pods/Target Support Files/flutter_star_prnt/flutter_star_prnt-umbrella.h:13:
#import "FlutterStarPrntPlugin.h"
^
/Users/reza/.pub-cache/hosted/pub.dartlang.org/flutter_star_prnt-1.0.4/ios/Classes/FlutterStarPrntPlugin.h:3:9: error: include of non-modular header
inside framework module 'flutter_star_prnt.FlutterStarPrntPlugin':
'/Users/reza/tmp/1/blue/flutter_star_prnt/example/ios/Pods/StarIO_Extension/StarIO_Extension.framework/Headers/StarIoExt.h'
#import <StarIO_Extension/StarIoExt.h>
^
<module-includes>:1:9: note: in file included from <module-includes>:1:
#import "Headers/flutter_star_prnt-umbrella.h"
^
/Users/reza/tmp/1/blue/flutter_star_prnt/example/ios/Pods/Target Support Files/flutter_star_prnt/flutter_star_prnt-umbrella.h:13:9: note: in file
included from /Users/reza/tmp/1/blue/flutter_star_prnt/example/ios/Pods/Target Support Files/flutter_star_prnt/flutter_star_prnt-umbrella.h:13:
#import "FlutterStarPrntPlugin.h"
^
/Users/reza/.pub-cache/hosted/pub.dartlang.org/flutter_star_prnt-1.0.4/ios/Classes/FlutterStarPrntPlugin.h:4:9: error: include of non-modular header
inside framework module 'flutter_star_prnt.FlutterStarPrntPlugin':
'/Users/reza/tmp/1/blue/flutter_star_prnt/example/ios/Pods/StarIO_Extension/StarIO_Extension.framework/Headers/StarIoExtManager.h'
#import <StarIO_Extension/StarIoExtManager.h>
^
<unknown>:0: error: could not build Objective-C module 'flutter_star_prnt'
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description
warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to
14.3.99. (in target 'flutter_star_prnt' from project 'Pods')
warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to
14.3.99. (in target 'Flutter' from project 'Pods')
Could not build the precompiled application for the device.
Hi there, the issue is mainly because the library from cocoapods is non-modular and when using use_framework! in podfile the build fails, I've updated to code to get the deps locally and the config so swift can import it . Try updating to version 1.0.5 and remember read the readme.
Thanks Eddayy. It works fine now.
Xcode's output: ↳ Command CompileSwift failed with a nonzero exit code