Here's my terminal output:
I have tried to update Xcode but i still get the same error. When i run flutter -doctor v it passes all cases, and theres a check-mark in every section. I have tried to build with AndroidStudio and then from the terminal and in both cases got the same error. AndroidStudio built with Nexus 6 API works fine, just having troubles with iOS building
~/Doc/FlutterLearn ❯ cd first_app Py anaconda3
~/Doc/F/first_app ❯ c Py anaconda3
~/Doc/F/first_app ❯ flutter run Py anaconda3
Launching lib/main.dart on iPhone 8 in debug mode...
Running Xcode build...
├─Assembling Flutter resources... 5.6s
└─Compiling, linking and signing... 5.0s
Xcode build done. 12.4s
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
While building module 'Flutter' imported from
/Users/snak3/Documents/FlutterLearn/first_app/ios/Runner/GeneratedPluginRegi
strant.h:8:
While building module 'UIKit' imported from
/Users/snak3/Documents/FlutterLearn/first_app/ios/Flutter/Flutter.framework/
Headers/FlutterAppDelegate.h:8:
While building module 'Foundation' imported from
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platfor
m/Developer/SDKs/iPhoneSimulator13.0.sdk/System/Library/Frameworks/UIKit.fra
mework/Headers/UIKit.h:8:
In file included from <module-includes>:1:
In file included from
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platfor
m/Developer/SDKs/iPhoneSimulator13.0.sdk/System/Library/Frameworks/Foundatio
n.framework/Headers/Foundation.h:10:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platfor
m/Developer/SDKs/iPhoneSimulator13.0.sdk/System/Library/Frameworks/Foundatio
n.framework/Headers/NSArray.h:109:12: error: attributes may not be specified
on a category
#interface NSArray<ObjectType> (NSArrayDiffing)
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platfor
m/Developer/SDKs/iPhoneSimulator13.0.sdk/System/Library/Frameworks/Foundatio
n.framework/Headers/NSArray.h:196:12: error: attributes may not be specified
on a category
#interface NSMutableArray<ObjectType> (NSMutableArrayDiffing)
^
While building module 'Flutter' imported from
/Users/snak3/Documents/FlutterLearn/first_app/ios/Runner/GeneratedPluginRegi
strant.h:8:
While building module 'UIKit' imported from
/Users/snak3/Documents/FlutterLearn/first_app/ios/Flutter/Flutter.framework/
Headers/FlutterAppDelegate.h:8:
While building module 'Foundation' imported from
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platfor
m/Developer/SDKs/iPhoneSimulator13.0.sdk/System/Library/Frameworks/UIKit.fra
mework/Headers/UIKit.h:8:
In file included from <module-includes>:1:
In file included from
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platfor
m/Developer/SDKs/iPhoneSimulator13.0.sdk/System/Library/Frameworks/Foundatio
n.framework/Headers/Foundation.h:48:
In file included from
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platfor
m/Developer/SDKs/iPhoneSimulator13.0.sdk/System/Library/Frameworks/Foundatio
n.framework/Headers/NSKeyValueCoding.h:8:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platfor
m/Developer/SDKs/iPhoneSimulator13.0.sdk/System/Library/Frameworks/Foundatio
n.framework/Headers/NSOrderedSet.h:112:12: error: attributes may not be
specified on a category
#interface NSOrderedSet<ObjectType> (NSOrderedSetDiffing)
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platfor
m/Developer/SDKs/iPhoneSimulator13.0.sdk/System/Library/Frameworks/Foundatio
n.framework/Headers/NSOrderedSet.h:187:12: error: attributes may not be
specified on a category
#interface NSMutableOrderedSet<ObjectType> (NSMutableOrderedSetDiffing)
^
4 errors generated.
While building module 'Flutter' imported from
/Users/snak3/Documents/FlutterLearn/first_app/ios/Runner/GeneratedPluginRegi
strant.h:8:
While building module 'UIKit' imported from
/Users/snak3/Documents/FlutterLearn/first_app/ios/Flutter/Flutter.framework/
Headers/FlutterAppDelegate.h:8:
In file included from <module-includes>:1:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platfor
m/Developer/SDKs/iPhoneSimulator13.0.sdk/System/Library/Frameworks/UIKit.fra
mework/Headers/UIKit.h:8:9: fatal error: could not build module 'Foundation'
#import <Foundation/Foundation.h>
~~~~~~~^
While building module 'Flutter' imported from
/Users/snak3/Documents/FlutterLearn/first_app/ios/Runner/GeneratedPluginRegi
strant.h:8:
While building module 'UIKit' imported from
/Users/snak3/Documents/FlutterLearn/first_app/ios/Flutter/Flutter.framework/
Headers/FlutterAppDelegate.h:8:
While building module 'QuartzCore' imported from
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platfor
m/Developer/SDKs/iPhoneSimulator13.0.sdk/System/Library/Frameworks/UIKit.fra
mework/Headers/UIView.h:10:
In file included from <module-includes>:1:
In file included from
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platfor
m/Developer/SDKs/iPhoneSimulator13.0.sdk/System/Library/Frameworks/QuartzCor
e.framework/Headers/QuartzCore.h:9:
In file included from
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platfor
m/Developer/SDKs/iPhoneSimulator13.0.sdk/System/Library/Frameworks/QuartzCor
e.framework/Headers/CoreAnimation.h:10:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platfor
m/Developer/SDKs/iPhoneSimulator13.0.sdk/System/Library/Frameworks/QuartzCor
e.framework/Headers/CATransform3D.h:12:9: fatal error: could not build
module 'Foundation'
#import <Foundation/NSValue.h>
~~~~~~~^
While building module 'Flutter' imported from
/Users/snak3/Documents/FlutterLearn/first_app/ios/Runner/GeneratedPluginRegi
strant.h:8:
While building module 'UIKit' imported from
/Users/snak3/Documents/FlutterLearn/first_app/ios/Flutter/Flutter.framework/
Headers/FlutterAppDelegate.h:8:
While building module 'QuartzCore' imported from
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platfor
m/Developer/SDKs/iPhoneSimulator13.0.sdk/System/Library/Frameworks/UIKit.fra
mework/Headers/UIView.h:10:
While building module 'OpenGLES' imported from
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platfor
m/Developer/SDKs/iPhoneSimulator13.0.sdk/System/Library/Frameworks/QuartzCor
e.framework/Headers/CAEAGLLayer.h:7:
In file included from <module-includes>:1:
In file included from
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platfor
m/Developer/SDKs/iPhoneSimulator13.0.sdk/System/Library/Frameworks/OpenGLES.
framework/Headers/EAGLDrawable.h:8:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platfor
m/Developer/SDKs/iPhoneSimulator13.0.sdk/System/Library/Frameworks/OpenGLES.
framework/Headers/EAGL.h:8:10: fatal error: could not build module
'Foundation'
#include <Foundation/Foundation.h>
~~~~~~~~^
1 error generated.
While building module 'Flutter' imported from
/Users/snak3/Documents/FlutterLearn/first_app/ios/Runner/GeneratedPluginRegi
strant.h:8:
While building module 'UIKit' imported from
/Users/snak3/Documents/FlutterLearn/first_app/ios/Flutter/Flutter.framework/
Headers/FlutterAppDelegate.h:8:
While building module 'QuartzCore' imported from
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platfor
m/Developer/SDKs/iPhoneSimulator13.0.sdk/System/Library/Frameworks/UIKit.fra
mework/Headers/UIView.h:10:
While building module 'Metal' imported from
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platfor
m/Developer/SDKs/iPhoneSimulator13.0.sdk/System/Library/Frameworks/QuartzCor
e.framework/Headers/CAMetalLayer.h:7:
In file included from <module-includes>:1:
In file included from
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platfor
m/Developer/SDKs/iPhoneSimulator13.0.sdk/System/Library/Frameworks/Metal.fra
mework/Headers/Metal.h:9:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platfor
m/Developer/SDKs/iPhoneSimulator13.0.sdk/System/Library/Frameworks/Metal.fra
mework/Headers/MTLTypes.h:8:9: fatal error: could not build module
'Foundation'
#import <Foundation/Foundation.h>
~~~~~~~^
While building module 'Flutter' imported from
/Users/snak3/Documents/FlutterLearn/first_app/ios/Runner/GeneratedPluginRegi
strant.h:8:
While building module 'UIKit' imported from
/Users/snak3/Documents/FlutterLearn/first_app/ios/Flutter/Flutter.framework/
Headers/FlutterAppDelegate.h:8:
While building module 'QuartzCore' imported from
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platfor
m/Developer/SDKs/iPhoneSimulator13.0.sdk/System/Library/Frameworks/UIKit.fra
mework/Headers/UIView.h:10:
While building module 'Metal' imported from
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platfor
m/Developer/SDKs/iPhoneSimulator13.0.sdk/System/Library/Frameworks/QuartzCor
e.framework/Headers/CAMetalLayer.h:7:
While building module 'IOSurface' imported from
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platfor
m/Developer/SDKs/iPhoneSimulator13.0.sdk/System/Library/Frameworks/Metal.fra
mework/Headers/MTLTexture.h:15:
In file included from <module-includes>:3:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platfor
m/Developer/SDKs/iPhoneSimulator13.0.sdk/System/Library/Frameworks/IOSurface
.framework/Headers/IOSurfaceObjC.h:15:9: fatal error: could not build module
'Foundation'
#import <Foundation/Foundation.h>
~~~~~~~^
1 error generated.
2 errors generated.
4 errors generated.
While building module 'Flutter' imported from
/Users/snak3/Documents/FlutterLearn/first_app/ios/Runner/GeneratedPluginRegi
strant.h:8:
While building module 'UIKit' imported from
/Users/snak3/Documents/FlutterLearn/first_app/ios/Flutter/Flutter.framework/
Headers/FlutterAppDelegate.h:8:
While building module 'CoreImage' imported from
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platfor
m/Developer/SDKs/iPhoneSimulator13.0.sdk/System/Library/Frameworks/UIKit.fra
mework/Headers/UIColor.h:13:
In file included from <module-includes>:1:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platfor
m/Developer/SDKs/iPhoneSimulator13.0.sdk/System/Library/Frameworks/CoreImage
.framework/Headers/CoreImage.h:9:9: fatal error: could not build module
'Foundation'
#import <Foundation/Foundation.h>
~~~~~~~^
While building module 'Flutter' imported from
/Users/snak3/Documents/FlutterLearn/first_app/ios/Runner/GeneratedPluginRegi
strant.h:8:
While building module 'UIKit' imported from
/Users/snak3/Documents/FlutterLearn/first_app/ios/Flutter/Flutter.framework/
Headers/FlutterAppDelegate.h:8:
While building module 'CoreImage' imported from
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platfor
m/Developer/SDKs/iPhoneSimulator13.0.sdk/System/Library/Frameworks/UIKit.fra
mework/Headers/UIColor.h:13:
While building module 'CoreVideo' imported from
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platfor
m/Developer/SDKs/iPhoneSimulator13.0.sdk/System/Library/Frameworks/CoreImage
.framework/Headers/CIImage.h:10:
In file included from <module-includes>:1:
In file included from
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platfor
m/Developer/SDKs/iPhoneSimulator13.0.sdk/System/Library/Frameworks/CoreVideo
.framework/Headers/CoreVideo.h:29:
In file included from
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platfor
m/Developer/SDKs/iPhoneSimulator13.0.sdk/System/Library/Frameworks/CoreVideo
.framework/Headers/CVPixelBuffer.h:462:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platfor
m/Developer/SDKs/iPhoneSimulator13.0.sdk/System/Library/Frameworks/CoreVideo
.framework/Headers/CVPixelBufferIOSurface.h:26:10: fatal error: could not
build module 'IOSurface'
#include <IOSurface/IOSurfaceRef.h>
~~~~~~~~^
1 error generated.
2 errors generated.
While building module 'Flutter' imported from
/Users/snak3/Documents/FlutterLearn/first_app/ios/Runner/GeneratedPluginRegi
strant.h:8:
While building module 'UIKit' imported from
/Users/snak3/Documents/FlutterLearn/first_app/ios/Flutter/Flutter.framework/
Headers/FlutterAppDelegate.h:8:
While building module 'FileProvider' imported from
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platfor
m/Developer/SDKs/iPhoneSimulator13.0.sdk/System/Library/Frameworks/UIKit.fra
mework/Headers/NSFileProviderExtension.h:15:
In file included from <module-includes>:1:
In file included from
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platfor
m/Developer/SDKs/iPhoneSimulator13.0.sdk/System/Library/Frameworks/FileProvi
der.framework/Headers/FileProvider.h:15:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platfor
m/Developer/SDKs/iPhoneSimulator13.0.sdk/System/Library/Frameworks/FileProvi
der.framework/Headers/NSFileProviderDomain.h:8:9: fatal error: could not
build module 'Foundation'
#import <Foundation/Foundation.h>
~~~~~~~^
1 error generated.
While building module 'Flutter' imported from
/Users/snak3/Documents/FlutterLearn/first_app/ios/Runner/GeneratedPluginRegi
strant.h:8:
While building module 'UIKit' imported from
/Users/snak3/Documents/FlutterLearn/first_app/ios/Flutter/Flutter.framework/
Headers/FlutterAppDelegate.h:8:
While building module 'UserNotifications' imported from
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platfor
m/Developer/SDKs/iPhoneSimulator13.0.sdk/System/Library/Frameworks/UIKit.fra
mework/Headers/UNNotificationResponse+UIKitAdditions.h:10:
In file included from <module-includes>:1:
In file included from
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platfor
m/Developer/SDKs/iPhoneSimulator13.0.sdk/System/Library/Frameworks/UserNotif
ications.framework/Headers/UserNotifications.h:8:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platfor
m/Developer/SDKs/iPhoneSimulator13.0.sdk/System/Library/Frameworks/UserNotif
ications.framework/Headers/NSString+UserNotifications.h:8:9: fatal error:
could not build module 'Foundation'
#import <Foundation/Foundation.h>
~~~~~~~^
1 error generated.
13 errors generated.
While building module 'Flutter' imported from
/Users/snak3/Documents/FlutterLearn/first_app/ios/Runner/GeneratedPluginRegi
strant.h:8:
In file included from <module-includes>:1:
In file included from
/Users/snak3/Documents/FlutterLearn/first_app/ios/Flutter/Flutter.framework/
Headers/Flutter.h:54:
/Users/snak3/Documents/FlutterLearn/first_app/ios/Flutter/Flutter.framework/
Headers/FlutterAppDelegate.h:8:9: fatal error: could not build module
'UIKit'
#import <UIKit/UIKit.h>
~~~~~~~^
While building module 'Flutter' imported from
/Users/snak3/Documents/FlutterLearn/first_app/ios/Runner/GeneratedPluginRegi
strant.h:8:
While building module 'CoreMedia' imported from
/Users/snak3/Documents/FlutterLearn/first_app/ios/Flutter/Flutter.framework/
Headers/FlutterTexture.h:8:
In file included from <module-includes>:1:
In file included from
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platfor
m/Developer/SDKs/iPhoneSimulator13.0.sdk/System/Library/Frameworks/CoreMedia
.framework/Headers/CoreMedia.h:15:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platfor
m/Developer/SDKs/iPhoneSimulator13.0.sdk/System/Library/Frameworks/CoreMedia
.framework/Headers/CMFormatDescription.h:29:10: fatal error: could not build
module 'CoreVideo'
#include <CoreVideo/CoreVideo.h>
~~~~~~~~^
1 error generated.
15 errors generated.
In file included from
/Users/snak3/Documents/FlutterLearn/first_app/ios/Runner/GeneratedPluginRegi
strant.m:5:
/Users/snak3/Documents/FlutterLearn/first_app/ios/Runner/GeneratedPluginRegi
strant.h:8:9: fatal error: could not build module 'Flutter'
#import <Flutter/Flutter.h>
~~~~~~~^
16 errors generated.
note: Using new build systemnote: Planning buildnote: Constructing build
description
Could not build the application for the simulator.
Error launching application on iPhone 8.
~/Doc/F/first_app ❯
took 24s Py anaconda3
Here's the output from flutter doctor :
~ ❯ flutter doctor -v Py anaconda3
[✓] Flutter (Channel stable, v1.9.1+hotfix.6, on Mac OS X 10.14.6 18G95, locale en-CA)
• Flutter version 1.9.1+hotfix.6 at /Users/snak3/flutter
• Framework revision 68587a0916 (3 months ago), 2019-09-13 19:46:58 -0700
• Engine revision b863200c37
• Dart version 2.5.0
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
• Android SDK at /Users/snak3/Library/Android/sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-29, build-tools 29.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_202-release-1483-b49-5587405)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 11.0)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 11.0, Build version 11A420a
• CocoaPods version 1.8.4
[✓] Android Studio (version 3.5)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 41.1.2
• Dart plugin version 191.8593
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
[✓] IntelliJ IDEA Ultimate Edition (version 2019.2)
• IntelliJ at /Applications/IntelliJ IDEA.app
• Flutter plugin version 39.0.4
• Dart plugin version 192.7761
[✓] VS Code (version 1.40.2)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.6.0
[✓] Connected device (1 available)
• iPhone 8 • EB666770-13C5-4CE6-B24A-657C875939A7 • ios •
com.apple.CoreSimulator.SimRuntime.iOS-13-0 (simulator)
• No issues found!
EDIT:
I have found a way to make it work momentarily. I open Xcode and I build it it there and the Simulator runs, i then close Xcode and have the Simulator and build my app with VSCode. But how would I fix the terminal command errors?
I had a similar issue (different errors, but all were about imports).
I managed to fix it eventually by upgrading cocoapods and cocoapods-core from version 1.9.3 to 1.10.
Hope this may help someone else facing the same issue.
Related
I'm trying to export an application for IOS, but when I add the firebase library to the project, when exporting for IOS I get an error BUILD FAILED.
I've already followed the official documentation, I've even followed several tutorials but the errors are the same.
Build in XCODE the errors are:
Could not build module 'os_workgroup'
CABASE - Could not build module 'CoreFoundation'
CFNETWORK - Could not build module 'CoreFoundation'
CFStream - Could not build module 'Dispatch'
CGBase - Could not build module 'CoreFoundation'
CLErrorDomain - Could not build module 'Foundation'
CoreImageDefines - Could not build module 'CoreGraphics'
CTFontTraits - Could not build module 'CoreFoundation'
CVBase - Could not build module 'CoreFoundation'
dispatch - Could not build module 'os_workgroup'
EAGL - Could not build module 'Foundation'
Foundation - Could not build module 'CoreFoundation'
ImageIOBase - Could not build module 'CoreFoundation'
IOSurfaceBase - Could not build module 'CoreFoundation'
main - Could not build module 'UIKit'
module - Redefinition of module 'Firebase'
MTLTypes - Could not build module 'Foundation'
NSAttributeString - Could not build module 'Foundation'
NSFileProviderDomain - Could not build module 'Foundation'
NSString+UserNotifications - Could not build module 'Foundation'
React-Core-umbrella - Could not build module 'UIKit'
SecBase - Could not build module 'CoreFoundation'
UIKit - Could not build module 'Foundation'
vecLibTypes - Could not build module '_Builtion_intrinsics'
Yoga-umbrella - Could not build module 'UIKit'
I removed the firebase library and tried to export to both platforms and everything worked.
I removed the DerivedData file, pod file and node_module file and reinstalled everything and it was the same.
the files podfile, AppDelegate (#import <Firebase.h>) have the same settings as explained in the documentation, i try to change to #import 'Firebase.h' but is the same.
My info
System:
OS: macOS 13.1
CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU # 2.60GHz
Memory: 1.85 GB / 32.00 GB
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 19.2.0 - ~/.nvm/versions/node/v19.2.0/bin/node
Yarn: Not Found
npm: 9.2.0 - ~/.nvm/versions/node/v19.2.0/bin/npm
Watchman: 2023.01.09.00 - /usr/local/bin/watchman
Managers:
CocoaPods: 1.11.3 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 22.2, iOS 16.2, macOS 13.1, tvOS 16.1, watchOS 9.1
Android SDK: Not Found
IDEs:
Android Studio: 2021.3 AI-213.7172.25.2113.9123335
Xcode: 14.2/14C18 - /usr/bin/xcodebuild
Languages:
Java: 11.0.17 - /usr/bin/javac
npmPackages:
#react-native-community/cli: Not Found
react: 18.1.0 => 18.1.0
react-native: 0.70.6 => 0.70.6
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found
Any suggestion? Can you help?
I'm using cloud mac server for releasing in ios. And before changing my mac, i succesfully finished build of my ios app, but then i changed my mac server, now when i try to build, getting error below, what can i do to fix this issue, as i understand it's about deprecated libraries, but i can't delete them all because im using them in my app.
/Users/user191346/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_analytics-7.0.1/ios/Classes/FLTFirebaseAnalytic
sPlugin.m:49:19: warning: 'setScreenName:screenClass:' is deprecated: Use +[FIRAnalytics logEventWithName:kFIREventScreenView
parameters:] instead. [-Wdeprecated-declarations]
[FIRAnalytics setScreenName:screenName screenClass:screenClassOverride];
^
In module 'FirebaseAnalytics' imported from
/Users/user191346/Desktop/rate_prof/rate_prof/ios/Pods/Headers/Public/Firebase/Firebase.h:22:
/Users/user191346/Desktop/rate_prof/rate_prof/ios/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRAnal
ytics.h:128:5: note: 'setScreenName:screenClass:' has been explicitly marked deprecated here
DEPRECATED_MSG_ATTRIBUTE(
^
In module 'UIKit' imported from /Users/user191346/Desktop/rate_prof/rate_prof/ios/Pods/Target Support
Files/firebase_analytics/firebase_analytics-prefix.pch:2:
In module 'Foundation' imported from
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.4.sdk/System/Library/Framework
s/UIKit.framework/Headers/UIKit.h:8:
In module 'CoreFoundation' imported from
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.4.sdk/System/Library/Framework
s/Foundation.framework/Headers/Foundation.h:6:
In module 'Darwin' imported from
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.4.sdk/System/Library/Framework
s/CoreFoundation.framework/Headers/CoreFoundation.h:16:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.4.sdk/usr/include/Availability
Macros.h:183:64: note: expanded from macro 'DEPRECATED_MSG_ATTRIBUTE'
#define DEPRECATED_MSG_ATTRIBUTE(s) __attribute__((deprecated(s)))
^
1 warning generated.
/Users/user191346/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_analytics-7.0.1/ios/Classes/FLTFirebaseAnalytic
sPlugin.m:49:19: warning: 'setScreenName:screenClass:' is deprecated: Use +[FIRAnalytics logEventWithName:kFIREventScreenView
parameters:] instead. [-Wdeprecated-declarations]
[FIRAnalytics setScreenName:screenName screenClass:screenClassOverride];
^
In module 'FirebaseAnalytics' imported from
/Users/user191346/Desktop/rate_prof/rate_prof/ios/Pods/Headers/Public/Firebase/Firebase.h:22:
/Users/user191346/Desktop/rate_prof/rate_prof/ios/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRAnal
ytics.h:128:5: note: 'setScreenName:screenClass:' has been explicitly marked deprecated here
DEPRECATED_MSG_ATTRIBUTE(
^
In module 'UIKit' imported from /Users/user191346/Desktop/rate_prof/rate_prof/ios/Pods/Target Support
Files/firebase_analytics/firebase_analytics-prefix.pch:2:
In module 'Foundation' imported from
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.4.sdk/System/Library/Framework
s/UIKit.framework/Headers/UIKit.h:8:
In module 'CoreFoundation' imported from
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.4.sdk/System/Library/Framework
s/Foundation.framework/Headers/Foundation.h:6:
In module 'Darwin' imported from
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.4.sdk/System/Library/Framework
s/CoreFoundation.framework/Headers/CoreFoundation.h:16:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.4.sdk/usr/include/Availability
Macros.h:183:64: note: expanded from macro 'DEPRECATED_MSG_ATTRIBUTE'
#define DEPRECATED_MSG_ATTRIBUTE(s) __attribute__((deprecated(s)))
^
1 warning generated.
building file list ... rsync: link_stat "/Users/user191346/Desktop/rate_prof/rate_prof/ios/Flutter/App.framework" failed: No
such file or directory (2)
done
You needn't delete these packages, just follow these
commands and try in your terminal;
First Method for fix the issue:
flutter clean
flutter pub get
flutter run
if isn't work you can try this:
Second Solution:
flutter pub get
cd ios
pod install
Or you can remove Podfile.lock and after try this:
cd ios
pod install
I am new for flutter. My simple app running in Android device without any issue and also running in iOS device when I run it from Xcode but when I try to run in iOS device from either Android Studio or Visual Code it shows following errors
Launching lib/main.dart on Shafraz Buhary’s iPhone in debug mode...
Automatically signing iOS for device deployment using specified development team in Xcode project: 836SQ257Z6
Running Xcode build...
Xcode build done. 6.1s
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
While building module 'Flutter' imported from /Volumes/Data/RnD/flutter/flutter_book/ios/Runner/GeneratedPluginRegistrant.h:8:
While building module 'UIKit' imported from /Volumes/Data/RnD/flutter/flutter_book/ios/Flutter/Flutter.framework/Headers/FlutterAppDelegate.h:8:
While building module 'Foundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:8:
In file included from <module-includes>:1:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:10:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSArray.h:109:12: error: attributes may not be specified on a category
#interface NSArray<ObjectType> (NSArrayDiffing)
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSArray.h:196:12: error: attributes may not be specified on a category
#interface NSMutableArray<ObjectType> (NSMutableArrayDiffing)
^
While building module 'Flutter' imported from /Volumes/Data/RnD/flutter/flutter_book/ios/Runner/GeneratedPluginRegistrant.h:8:
While building module 'UIKit' imported from /Volumes/Data/RnD/flutter/flutter_book/ios/Flutter/Flutter.framework/Headers/FlutterAppDelegate.h:8:
While building module 'Foundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:8:
In file included from <module-includes>:1:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:48:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSKeyValueCoding.h:8:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSOrderedSet.h:112:12: error: attributes may not be specified on a category
#interface NSOrderedSet<ObjectType> (NSOrderedSetDiffing)
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSOrderedSet.h:187:12: error: attributes may not be specified on a category
#interface NSMutableOrderedSet<ObjectType> (NSMutableOrderedSetDiffing)
^
4 errors generated.
While building module 'Flutter' imported from /Volumes/Data/RnD/flutter/flutter_book/ios/Runner/GeneratedPluginRegistrant.h:8:
While building module 'UIKit' imported from /Volumes/Data/RnD/flutter/flutter_book/ios/Flutter/Flutter.framework/Headers/FlutterAppDelegate.h:8:
In file included from <module-includes>:1:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:8:9: fatal error: could not build module 'Foundation'
#import <Foundation/Foundation.h>
~~~~~~~^
While building module 'Flutter' imported from /Volumes/Data/RnD/flutter/flutter_book/ios/Runner/GeneratedPluginRegistrant.h:8:
While building module 'UIKit' imported from /Volumes/Data/RnD/flutter/flutter_book/ios/Flutter/Flutter.framework/Headers/FlutterAppDelegate.h:8:
While building module 'QuartzCore' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:10:
In file included from <module-includes>:1:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.h:9:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CoreAnimation.h:10:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CATransform3D.h:12:9: fatal error: could not build module 'Foundation'
#import <Foundation/NSValue.h>
~~~~~~~^
While building module 'Flutter' imported from /Volumes/Data/RnD/flutter/flutter_book/ios/Runner/GeneratedPluginRegistrant.h:8:
While building module 'UIKit' imported from /Volumes/Data/RnD/flutter/flutter_book/ios/Flutter/Flutter.framework/Headers/FlutterAppDelegate.h:8:
While building module 'QuartzCore' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:10:
While building module 'OpenGLES' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CAEAGLLayer.h:7:
In file included from <module-includes>:1:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/EAGLDrawable.h:8:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/EAGL.h:8:10: fatal error: could not build module 'Foundation'
#include <Foundation/Foundation.h>
~~~~~~~~^
While building module 'Flutter' imported from /Volumes/Data/RnD/flutter/flutter_book/ios/Runner/GeneratedPluginRegistrant.h:8:
While building module 'UIKit' imported from /Volumes/Data/RnD/flutter/flutter_book/ios/Flutter/Flutter.framework/Headers/FlutterAppDelegate.h:8:
While building module 'QuartzCore' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:10:
While building module 'OpenGLES' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CAEAGLLayer.h:7:
While building module 'IOSurface' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/EAGLIOSurface.h:13:
In file included from <module-includes>:3:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk/System/Library/Frameworks/IOSurface.framework/Headers/IOSurfaceObjC.h:15:9: fatal error: could not build module 'Foundation'
#import <Foundation/Foundation.h>
~~~~~~~^
1 error generated.
2 errors generated.
While building module 'Flutter' imported from /Volumes/Data/RnD/flutter/flutter_book/ios/Runner/GeneratedPluginRegistrant.h:8:
While building module 'UIKit' imported from /Volumes/Data/RnD/flutter/flutter_book/ios/Flutter/Flutter.framework/Headers/FlutterAppDelegate.h:8:
While building module 'QuartzCore' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:10:
While building module 'Metal' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CAMetalLayer.h:7:
In file included from <module-includes>:1:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.h:9:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLTypes.h:8:9: fatal error: could not build module 'Foundation'
#import <Foundation/Foundation.h>
~~~~~~~^
1 error generated.
4 errors generated.
While building module 'Flutter' imported from /Volumes/Data/RnD/flutter/flutter_book/ios/Runner/GeneratedPluginRegistrant.h:8:
While building module 'UIKit' imported from /Volumes/Data/RnD/flutter/flutter_book/ios/Flutter/Flutter.framework/Headers/FlutterAppDelegate.h:8:
While building module 'CoreImage' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIColor.h:13:
In file included from <module-includes>:1:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.h:9:9: fatal error: could not build module 'Foundation'
#import <Foundation/Foundation.h>
~~~~~~~^
While building module 'Flutter' imported from /Volumes/Data/RnD/flutter/flutter_book/ios/Runner/GeneratedPluginRegistrant.h:8:
While building module 'UIKit' imported from /Volumes/Data/RnD/flutter/flutter_book/ios/Flutter/Flutter.framework/Headers/FlutterAppDelegate.h:8:
While building module 'CoreImage' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIColor.h:13:
While building module 'CoreVideo' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CIImage.h:10:
In file included from <module-includes>:1:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk/System/Library/Frameworks/CoreVideo.framework/Headers/CoreVideo.h:29:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk/System/Library/Frameworks/CoreVideo.framework/Headers/CVPixelBuffer.h:462:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk/System/Library/Frameworks/CoreVideo.framework/Headers/CVPixelBufferIOSurface.h:26:10: fatal error: could not build module 'IOSurface'
#include <IOSurface/IOSurfaceRef.h>
~~~~~~~~^
1 error generated.
2 errors generated.
While building module 'Flutter' imported from /Volumes/Data/RnD/flutter/flutter_book/ios/Runner/GeneratedPluginRegistrant.h:8:
While building module 'UIKit' imported from /Volumes/Data/RnD/flutter/flutter_book/ios/Flutter/Flutter.framework/Headers/FlutterAppDelegate.h:8:
While building module 'FileProvider' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSFileProviderExtension.h:15:
In file included from <module-includes>:1:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk/System/Library/Frameworks/FileProvider.framework/Headers/FileProvider.h:15:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk/System/Library/Frameworks/FileProvider.framework/Headers/NSFileProviderDomain.h:8:9: fatal error: could not build module 'Foundation'
#import <Foundation/Foundation.h>
~~~~~~~^
1 error generated.
While building module 'Flutter' imported from /Volumes/Data/RnD/flutter/flutter_book/ios/Runner/GeneratedPluginRegistrant.h:8:
While building module 'UIKit' imported from /Volumes/Data/RnD/flutter/flutter_book/ios/Flutter/Flutter.framework/Headers/FlutterAppDelegate.h:8:
While building module 'UserNotifications' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UNNotificationResponse+UIKitAdditions.h:10:
In file included from <module-includes>:1:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.h:8:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/NSString+UserNotifications.h:8:9: fatal error: could not build module 'Foundation'
#import <Foundation/Foundation.h>
~~~~~~~^
1 error generated.
13 errors generated.
While building module 'Flutter' imported from /Volumes/Data/RnD/flutter/flutter_book/ios/Runner/GeneratedPluginRegistrant.h:8:
In file included from <module-includes>:1:
In file included from /Volumes/Data/RnD/flutter/flutter_book/ios/Flutter/Flutter.framework/Headers/Flutter.h:54:
/Volumes/Data/RnD/flutter/flutter_book/ios/Flutter/Flutter.framework/Headers/FlutterAppDelegate.h:8:9: fatal error: could not build module 'UIKit'
#import <UIKit/UIKit.h>
~~~~~~~^
While building module 'Flutter' imported from /Volumes/Data/RnD/flutter/flutter_book/ios/Runner/GeneratedPluginRegistrant.h:8:
While building module 'CoreMedia' imported from /Volumes/Data/RnD/flutter/flutter_book/ios/Flutter/Flutter.framework/Headers/FlutterTexture.h:8:
In file included from <module-includes>:1:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk/System/Library/Frameworks/CoreMedia.framework/Headers/CoreMedia.h:15:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk/System/Library/Frameworks/CoreMedia.framework/Headers/CMFormatDescription.h:29:10: fatal error: could not build module 'CoreVideo'
#include <CoreVideo/CoreVideo.h>
~~~~~~~~^
1 error generated.
15 errors generated.
In file included from /Volumes/Data/RnD/flutter/flutter_book/ios/Runner/GeneratedPluginRegistrant.m:5:
/Volumes/Data/RnD/flutter/flutter_book/ios/Runner/GeneratedPluginRegistrant.h:8:9: fatal error: could not build module 'Flutter'
#import <Flutter/Flutter.h>
~~~~~~~^
16 errors generated.
note: Using new build system
note: Planning build
note: Constructing build description
Could not build the precompiled application for the device.
Error launching application on Shafraz Buhary’s iPhone.
When I run flutter doctor -v it shows everything is ok
[✓] Flutter (Channel stable, v1.12.13+hotfix.5, on Mac OS X 10.15.2 19C57, locale en-LK)
• Flutter version 1.12.13+hotfix.5 at /Library/Frameworks/flutter
• Framework revision 27321ebbad (6 weeks ago), 2019-12-10 18:15:01 -0800
• Engine revision 2994f7e1e6
• Dart version 2.7.0
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
• Android SDK at /Library/Frameworks/Android/sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-29, build-tools 29.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_202-release-1483-b49-5587405)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 11.3.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 11.3.1, Build version 11C504
• CocoaPods version 1.8.4
[✓] Android Studio (version 3.5)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 42.1.1
• Dart plugin version 191.8593
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
[✓] IntelliJ IDEA Ultimate Edition (version 2019.2.3)
• IntelliJ at /Applications/IntelliJ IDEA.app
• Flutter plugin version 40.2.4
• Dart plugin version 192.6817.14
[✓] VS Code (version 1.41.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.7.1
[✓] VS Code (version 1.41.1)
• VS Code at /Users/shafraz/Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.7.1
[✓] Connected device (1 available)
• Shafraz Buhary’s iPhone • bb37XXXXXXc167be5XXXXXX48d70136c2XXXXXX • ios • iOS 13.3
• No issues found!
How can I fix this?
I recently copied some files from the iOS folder in an old flutter project to a new project so that I could preserve appIcons and launchScreens. Now I get the following error when trying to launch my code from VSCode, Xcode works fine.
I'm wondering if there's a way that I can just change certain parameters so that my signing id can be replaced, but I can't find anywhere in Xcode to do so.
(Nokia 3310 is just an iPhone 6 I use for debug testing :) )
Launching lib/main.dart on Nokia 3310 in debug mode...
Automatically signing iOS for device deployment using specified development team in Xcode project: **********
Xcode build done.
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
=== BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Debug ===
Target 'Pods-Runner' of project 'Pods' was rejected as an implicit dependency for 'libPods-Runner.a' because its architectures 'arm64' didn't contain all required architectures 'armv7 arm64'
=== BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Debug ===
While building module 'Flutter' imported from /Users/jake/Desktop/cryptick-master/ios/Runner/main.m:1:
In file included from <module-includes>:1:
In file included from /Users/jake/Desktop/cryptick-master/ios/Flutter/Flutter.framework/Headers/Flutter.h:37:
In file included from /Users/jake/Desktop/cryptick-master/ios/Flutter/Flutter.framework/Headers/FlutterAppDelegate.h:11:
/Users/jake/Desktop/cryptick-master/ios/Flutter/Flutter.framework/Headers/FlutterPlugin.h:80:42: warning: 'UIUserNotificationSettings' is deprecated: first deprecated in iOS 10.0 - Use UserNotifications Framework's UNNotificationSettings [-Wdeprecated-declarations]
didRegisterUserNotificationSettings:(UIUserNotificationSettings*)notificationSettings;
^
In module 'UIKit' imported from /Users/jake/Desktop/cryptick-master/ios/Flutter/Flutter.framework/Headers/FlutterAppDelegate.h:8:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIUserNotificationSettings.h:43:12: note: 'UIUserNotificationSettings' has been explicitly marked deprecated here
#interface UIUserNotificationSettings : NSObject
^
While building module 'Flutter' imported from /Users/jake/Desktop/cryptick-master/ios/Runner/main.m:1:
In file included from <module-includes>:1:
In file included from /Users/jake/Desktop/cryptick-master/ios/Flutter/Flutter.framework/Headers/Flutter.h:37:
In file included from /Users/jake/Desktop/cryptick-master/ios/Flutter/Flutter.framework/Headers/FlutterAppDelegate.h:11:
/Users/jake/Desktop/cryptick-master/ios/Flutter/Flutter.framework/Headers/FlutterPlugin.h:140:58: warning: this block declaration is not a prototype [-Wstrict-prototypes]
completionHandler:(nonnull void (^)())completionHandler;
^
void
2 warnings generated.
2 warnings generated.
=== BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Debug ===
While building module 'Flutter' imported from /Users/jake/Desktop/cryptick-master/ios/Runner/AppDelegate.h:1:
In file included from <module-includes>:1:
In file included from /Users/jake/Desktop/cryptick-master/ios/Flutter/Flutter.framework/Headers/Flutter.h:37:
In file included from /Users/jake/Desktop/cryptick-master/ios/Flutter/Flutter.framework/Headers/FlutterAppDelegate.h:11:
/Users/jake/Desktop/cryptick-master/ios/Flutter/Flutter.framework/Headers/FlutterPlugin.h:80:42: warning: 'UIUserNotificationSettings' is deprecated: first deprecated in iOS 10.0 - Use UserNotifications Framework's UNNotificationSettings [-Wdeprecated-declarations]
didRegisterUserNotificationSettings:(UIUserNotificationSettings*)notificationSettings;
^
In module 'UIKit' imported from /Users/jake/Desktop/cryptick-master/ios/Flutter/Flutter.framework/Headers/FlutterAppDelegate.h:8:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIUserNotificationSettings.h:43:12: note: 'UIUserNotificationSettings' has been explicitly marked deprecated here
#interface UIUserNotificationSettings : NSObject
^
While building module 'Flutter' imported from /Users/jake/Desktop/cryptick-master/ios/Runner/AppDelegate.h:1:
In file included from <module-includes>:1:
In file included from /Users/jake/Desktop/cryptick-master/ios/Flutter/Flutter.framework/Headers/Flutter.h:37:
In file included from /Users/jake/Desktop/cryptick-master/ios/Flutter/Flutter.framework/Headers/FlutterAppDelegate.h:11:
/Users/jake/Desktop/cryptick-master/ios/Flutter/Flutter.framework/Headers/FlutterPlugin.h:140:58: warning: this block declaration is not a prototype [-Wstrict-prototypes]
completionHandler:(nonnull void (^)())completionHandler;
^
void
2 warnings generated.
2 warnings generated.
=== BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Debug ===
ld: warning: directory not found for option '-F/Users/jake/Desktop/cryptick-master/ios/Pods/../.symlinks/flutter/ios'
ld: library not found for -lPods-Runner
clang: error: linker command failed with exit code 1 (use -v to see invocation)
ld: warning: directory not found for option '-F/Users/jake/Desktop/cryptick-master/ios/Pods/../.symlinks/flutter/ios'
ld: library not found for -lPods-Runner
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Could not build the precompiled application for the device.
It appears that your application still contains the default signing identifier.
Try replacing 'com.example' with your signing id in Xcode:
open ios/Runner.xcworkspace
Error launching application on Nokia 3310.
Exited (sigterm)
It looks like the issue has been solved by creating a new project again and migrating the code. With the current details, I'm unable to replicate this issue on my end.
If someone else is having similar issues, please provide the steps to replicate the behavior and file it here: https://github.com/flutter/flutter/issues/
..I am trying to generate the report using oclint-json-compilation
oclint-json-compilation-database -v oclint_args "-report-type html -o report.html -rc=LONG_LINE=120" open compile_commands.json open report.html
and I am getting the following error
`While building module 'UIKit' imported from /Users/prjwl/Documents/Samples/automation/automation/automation-Prefix.pch:14:
While building module 'QuartzCore' imported from /Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UICollectionViewLayout.h:11:
In file included from <module-includes>:1:
In file included from /Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CAAnimation.h:6:
/Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CALayer.h:153:25: note: property declared here
#property CATransform3D transform;
^
While building module 'UIKit' imported from /Users/prjwl/Documents/Samples/automation/automation/automation-Prefix.pch:14:
While building module 'QuartzCore' imported from /Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UICollectionViewLayout.h:11:
In file included from <module-includes>:4:
In file included from /Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CAEAGLLayer.h:6:
/Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CALayer.h:166:18: error: property has a previous declaration
#property CGRect frame;
^
While building module 'UIKit' imported from /Users/prjwl/Documents/Samples/automation/automation/automation-Prefix.pch:14:
While building module 'QuartzCore' imported from /Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UICollectionViewLayout.h:11:
In file included from <module-includes>:1:
In file included from /Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CAAnimation.h:6:
/Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CALayer.h:166:18: note: property declared here
#property CGRect frame;
^
While building module 'UIKit' imported from /Users/prjwl/Documents/Samples/automation/automation/automation-Prefix.pch:14:
While building module 'QuartzCore' imported from /Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UICollectionViewLayout.h:11:
In file included from <module-includes>:4:
In file included from /Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CAEAGLLayer.h:6:
/Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CALayer.h:171:33: error: property has a previous declaration
#property(getter=isHidden) BOOL hidden;
^
While building module 'UIKit' imported from /Users/prjwl/Documents/Samples/automation/automation/automation-Prefix.pch:14:
While building module 'QuartzCore' imported from /Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UICollectionViewLayout.h:11:
In file included from <module-includes>:1:
In file included from /Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CAAnimation.h:6:
/Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CALayer.h:171:33: note: property declared here
#property(getter=isHidden) BOOL hidden;
^
While building module 'UIKit' imported from /Users/prjwl/Documents/Samples/automation/automation/automation-Prefix.pch:14:
While building module 'QuartzCore' imported from /Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UICollectionViewLayout.h:11:
In file included from <module-includes>:4:
In file included from /Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CAEAGLLayer.h:6:
/Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CALayer.h:176:38: error: property has a previous declaration
#property(getter=isDoubleSided) BOOL doubleSided;
^
While building module 'UIKit' imported from /Users/prjwl/Documents/Samples/automation/automation/automation-Prefix.pch:14:
While building module 'QuartzCore' imported from /Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UICollectionViewLayout.h:11:
In file included from <module-includes>:1:
In file included from /Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CAAnimation.h:6:
/Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CALayer.h:176:38: note: property declared here
#property(getter=isDoubleSided) BOOL doubleSided;
^
While building module 'UIKit' imported from /Users/prjwl/Documents/Samples/automation/automation/automation-Prefix.pch:14:
While building module 'QuartzCore' imported from /Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UICollectionViewLayout.h:11:
In file included from <module-includes>:4:
In file included from /Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CAEAGLLayer.h:6:
/Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CALayer.h:184:42: error: property has a previous declaration
#property(getter=isGeometryFlipped) BOOL geometryFlipped;
^
While building module 'UIKit' imported from /Users/prjwl/Documents/Samples/automation/automation/automation-Prefix.pch:14:
While building module 'QuartzCore' imported from /Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UICollectionViewLayout.h:11:
In file included from <module-includes>:1:
In file included from /Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CAAnimation.h:6:
/Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CALayer.h:184:42: note: property declared here
#property(getter=isGeometryFlipped) BOOL geometryFlipped;
^
While building module 'UIKit' imported from /Users/prjwl/Documents/Samples/automation/automation/automation-Prefix.pch:14:
While building module 'QuartzCore' imported from /Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UICollectionViewLayout.h:11:
In file included from <module-includes>:4:
In file included from /Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CAEAGLLayer.h:6:
/Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CALayer.h:201:30: error: property has a previous declaration
#property(readonly) CALayer *superlayer;
^
While building module 'UIKit' imported from /Users/prjwl/Documents/Samples/automation/automation/automation-Prefix.pch:14:
While building module 'QuartzCore' imported from /Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UICollectionViewLayout.h:11:
In file included from <module-includes>:1:
In file included from /Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CAAnimation.h:6:
/Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CALayer.h:201:30: note: property declared here
#property(readonly) CALayer *superlayer;
^
While building module 'UIKit' imported from /Users/prjwl/Documents/Samples/automation/automation/automation-Prefix.pch:14:
While building module 'QuartzCore' imported from /Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UICollectionViewLayout.h:11:
In file included from <module-includes>:4:
In file included from /Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CAEAGLLayer.h:6:
/Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CALayer.h:214:26: error: property has a previous declaration
#property(copy) NSArray *sublayers;
^
While building module 'UIKit' imported from /Users/prjwl/Documents/Samples/automation/automation/automation-Prefix.pch:14:
While building module 'QuartzCore' imported from /Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UICollectionViewLayout.h:11:
In file included from <module-includes>:1:
In file included from /Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CAAnimation.h:6:
/Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CALayer.h:214:26: note: property declared here
#property(copy) NSArray *sublayers;
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
While building module 'UIKit' imported from /Users/prjwl/Documents/Samples/automation/automation/automation-Prefix.pch:14:
In file included from <module-includes>:1:
In file included from /Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:24:
In file included from /Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UICollectionViewFlowLayout.h:8:
/Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UICollectionViewLayout.h:11:9: fatal error: could not build module 'QuartzCore'
#import <QuartzCore/CATransform3D.h>
~~~~~~~^
21 errors generated.
In file included from <built-in>:168:
In file included from <command line>:2:
/Users/prjwl/Documents/Samples/automation/automation/automation-Prefix.pch:14:13: fatal error: could not build module 'UIKit'
#import <UIKit/UIKit.h>
~~~~~~~^
and so on can any one help me how can I exclude system libraries from oclint?
I too got the same problem but was able to resolve it updating to OCLint 0.8 from here.