Issue
I have created on sample project and was successfully running on both platform. But I have updated the android studio and then after iOS app stops working. I am not able to run iOS app. Here are the logs which I am facing.
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
ld: framework not found Flutter
clang: error: linker command failed with exit code 1 (use -v to see invocation)
note: Using new build system
note: Planning
note: Build preparation complete
note: Building targets in parallel
note: Removed stale file '/Users/Rushabh/Library/Developer/Xcode/DerivedData/Runner-gtohejelopxdkkgekzyeqtnfiwjz/Build/Products/Debug-iphonesimulator/gRPC-C++/gRPCCertificates-Cpp.bundle'
note: Removed stale file '/Users/Rushabh/Library/Developer/Xcode/DerivedData/Runner-gtohejelopxdkkgekzyeqtnfiwjz/Build/Products/Debug-iphonesimulator/sqflite/sqflite.framework'
note: Removed stale file '/Users/Rushabh/Library/Developer/Xcode/DerivedData/Runner-gtohejelopxdkkgekzyeqtnfiwjz/Build/Products/Debug-iphonesimulator/fluttertoast/fluttertoast.framework'
note: Removed stale file '/Users/Rushabh/Library/Developer/Xcode/DerivedData/Runner-gtohejelopxdkkgekzyeqtnfiwjz/Build/Products/Debug-iphonesimulator/firebase_storage/firebase_storage.framework'
note: Removed stale file '/Users/Rushabh/Library/Developer/Xcode/DerivedData/Runner-gtohejelopxdkkgekzyeqtnfiwjz/Build/Products/Debug-iphonesimulator/firebase_core/firebase_core.framework'
note: Removed stale file '/Users/Rushabh/Library/Developer/Xcode/DerivedData/Runner-gtohejelopxdkkgekzyeqtnfiwjz/Build/Products/Debug-iphonesimulator/flutter_facebook_auth/flutter_facebook_auth.framework'
note: Removed stale file '/Users/Rushabh/Library/Developer/Xcode/DerivedData/Runner-gtohejelopxdkkgekzyeqtnfiwjz/Build/Products/Debug-iphonesimulator/firebase_auth/firebase_auth.framework'
note: Removed stale file '/Users/Rushabh/Library/Developer/Xcode/DerivedData/Runner-gtohejelopxdkkgekzyeqtnfiwjz/Build/Products/Debug-iphonesimulator/cloud_firestore/cloud_firestore.framework'
note: Removed stale file '/Users/Rushabh/Library/Developer/Xcode/DerivedData/Runner-gtohejelopxdkkgekzyeqtnfiwjz/Build/Products/Debug-iphonesimulator/Pods_Runner.framework'
note: Removed stale file '/Users/Rushabh/Library/Developer/Xcode/DerivedData/Runner-gtohejelopxdkkgekzyeqtnfiwjz/Build/Products/Debug-iphonesimulator/GoogleUtilities/GoogleUtilities.framework'
note: Removed stale file '/Users/Rushabh/Library/Developer/Xcode/DerivedData/Runner-gtohejelopxdkkgekzyeqtnfiwjz/Build/Products/Debug-iphonesimulator/GoogleDataTransport/GoogleDataTransport.framework'
note: Removed stale file '/Users/Rushabh/Library/Developer/Xcode/DerivedData/Runner-gtohejelopxdkkgekzyeqtnfiwjz/Build/Products/Debug-iphonesimulator/FirebaseStorage/FirebaseStorage.framework'
note: Removed stale file '/Users/Rushabh/Library/Developer/Xcode/DerivedData/Runner-gtohejelopxdkkgekzyeqtnfiwjz/Build/Products/Debug-iphonesimulator/gRPC-C++/grpcpp.framework'
note: Removed stale file '/Users/Rushabh/Library/Developer/Xcode/DerivedData/Runner-gtohejelopxdkkgekzyeqtnfiwjz/Build/Products/Debug-iphonesimulator/FirebaseCoreDiagnostics/FirebaseCoreDiagnostics.framework'
note: Removed stale file '/Users/Rushabh/Library/Developer/Xcode/DerivedData/Runner-gtohejelopxdkkgekzyeqtnfiwjz/Build/Products/Debug-iphonesimulator/FirebaseCore/FirebaseCore.framework'
note: Removed stale file '/Users/Rushabh/Library/Developer/Xcode/DerivedData/Runner-gtohejelopxdkkgekzyeqtnfiwjz/Build/Products/Debug-iphonesimulator/gRPC-Core/grpc.framework'
note: Removed stale file '/Users/Rushabh/Library/Developer/Xcode/DerivedData/Runner-gtohejelopxdkkgekzyeqtnfiwjz/Build/Products/Debug-iphonesimulator/FirebaseFirestore/FirebaseFirestore.framework'
note: Removed stale file '/Users/Rushabh/Library/Developer/Xcode/DerivedData/Runner-gtohejelopxdkkgekzyeqtnfiwjz/Build/Products/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework'
note: Removed stale file '/Users/Rushabh/Library/Developer/Xcode/DerivedData/Runner-gtohejelopxdkkgekzyeqtnfiwjz/Build/Products/Debug-iphonesimulator/XCFrameworkIntermediates/FBSDKCoreKit_Basics/FBSDKCoreKit_Basics.framework'
note: Removed stale file '/Users/Rushabh/Library/Developer/Xcode/DerivedData/Runner-gtohejelopxdkkgekzyeqtnfiwjz/Build/Products/Debug-iphonesimulator/path_provider_ios/path_provider_ios.framework'
note: Removed stale file '/Users/Rushabh/Library/Developer/Xcode/DerivedData/Runner-gtohejelopxdkkgekzyeqtnfiwjz/Build/Products/Debug-iphonesimulator/Toast/Toast.framework'
note: Removed stale file '/Users/Rushabh/Library/Developer/Xcode/DerivedData/Runner-gtohejelopxdkkgekzyeqtnfiwjz/Build/Products/Debug-iphonesimulator/PromisesObjC/FBLPromises.framework'
note: Removed stale file '/Users/Rushabh/Library/Developer/Xcode/DerivedData/Runner-gtohejelopxdkkgekzyeqtnfiwjz/Build/Products/Debug-iphonesimulator/shared_preferences_ios/shared_preferences_ios.framework'
note: Removed stale file '/Users/Rushabh/Library/Developer/Xcode/DerivedData/Runner-gtohejelopxdkkgekzyeqtnfiwjz/Build/Products/Debug-iphonesimulator/nanopb/nanopb.framework'
note: Removed stale file '/Users/Rushabh/Library/Developer/Xcode/DerivedData/Runner-gtohejelopxdkkgekzyeqtnfiwjz/Build/Products/Debug-iphonesimulator/image_picker/image_picker.framework'
note: Removed stale file '/Users/Rushabh/Library/Developer/Xcode/DerivedData/Runner-gtohejelopxdkkgekzyeqtnfiwjz/Build/Products/Debug-iphonesimulator/abseil/absl.framework'
note: Removed stale file '/Users/Rushabh/Library/Developer/Xcode/DerivedData/Runner-gtohejelopxdkkgekzyeqtnfiwjz/Build/Products/Debug-iphonesimulator/leveldb-library/leveldb.framework'
note: Removed stale file '/Users/Rushabh/Library/Developer/Xcode/DerivedData/Runner-gtohejelopxdkkgekzyeqtnfiwjz/Build/Products/Debug-iphonesimulator/FMDB/FMDB.framework'
note: Removed stale file '/Users/Rushabh/Library/Developer/Xcode/DerivedData/Runner-gtohejelopxdkkgekzyeqtnfiwjz/Build/Products/Debug-iphonesimulator/GTMSessionFetcher/GTMSessionFetcher.framework'
note: Removed stale file '/Users/Rushabh/Library/Developer/Xcode/DerivedData/Runner-gtohejelopxdkkgekzyeqtnfiwjz/Build/Products/Debug-iphonesimulator/BoringSSL-GRPC/openssl_grpc.framework'
/Users/Rushabh/Documents/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 15.0.99. (in target 'FMDB' from project 'Pods')
/Users/Rushabh/Documents/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 15.0.99. (in target 'Toast' from project 'Pods')
/Users/Rushabh/Documents/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 15.0.99. (in target 'BoringSSL-GRPC' from project 'Pods')
/Users/Rushabh/Documents/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 15.0.99. (in target 'abseil' from project 'Pods')
/Users/Rushabh/Documents/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 15.0.99. (in target 'leveldb-library' from project 'Pods')
/Users/Rushabh/Documents/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 15.0.99. (in target 'gRPC-Core' from project 'Pods')
/Users/Rushabh/Documents/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 15.0.99. (in target 'gRPC-C++' from project 'Pods')
/Users/Rushabh/Documents/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 15.0.99. (in target 'gRPC-C++-gRPCCertificates-Cpp' from project 'Pods')
Could not build the application for the simulator. Error launching application on iPhone 11.
I am using bumblebee version of android studio.
I have tried pod deintegrated
and pod install
but still not working.
Thanks is advance.
Solution
You need upgrade packages according to your iOS deployment target & flutter sdk version.
Then try below steps.
- Run flutter clean
- Run flutter pub get
- Remove xcode derived data - check this link
- Remove Pods folder form project iOS folder.
- Remove Podfile.lock file from project iOS folder.
- Remove project.workspace file
- Run again in iOS platform.
Answered By - Vishal Zaveri
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.