We are trying to build our flutter app for IOS but we keep getting error messages. We've been scrapping the web for almost 8 hours to find a solution but none worked.
This is the error that shows in the console :
Building ... for device (ios-release)...
Automatically signing iOS for device deployment using specified development team in Xcode project: T75QH2RS6D
Running pod install... 8,8s
Running Xcode build...
Xcode build done. 110,5s
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
Writing result bundle at path:
/var/folders/n1/_qynvt2d4j3_6mgk3fm106k40000gn/T/flutter_tools.Hg2HE1/flutter_ios_build_temp_dirfk4woH/temporary_xcresult_bundle
2 warnings generated.
/Users/rominhood/Logiciels/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore-4.1.0/ios/Classes/FLTFirebaseFirestorePlugin.m:474:29: warning: comparison of distinct pointer types ('FIRQuery *' and
'NSNull * _Nonnull') [-Wcompare-distinct-pointer-types]
if (query == nil || query == [NSNull null]) {
~~~~~ ^ ~~~~~~~~~~~~~
1 warning generated.
Failed to package /Users/rominhood/PRENT/Projects/Personal/rikiki.
Command PhaseScriptExecution failed with a nonzero exit code
note: Building targets in dependency order
note: Removed stale file
'/Users/rominhood/Library/Developer/Xcode/DerivedData/Runner-giiheketkpathjhacgxnfvexostk/Build/Products/Release-iphoneos/XCFrameworkIntermediates/GoogleAppMeasurement/AdIdSupport/GoogleAppMeasurementIdent
itySupport.framework'
note: Removed stale file
'/Users/rominhood/Library/Developer/Xcode/DerivedData/Runner-giiheketkpathjhacgxnfvexostk/Build/Products/Release-iphoneos/XCFrameworkIntermediates/GoogleUserMessagingPlatform/UserMessagingPlatform.framewor
k'
note: Removed stale file
'/Users/rominhood/Library/Developer/Xcode/DerivedData/Runner-giiheketkpathjhacgxnfvexostk/Build/Products/Release-iphoneos/XCFrameworkIntermediates/GoogleAppMeasurement/WithoutAdIdSupport/GoogleAppMeasureme
nt.framework'
note: Removed stale file
'/Users/rominhood/Library/Developer/Xcode/DerivedData/Runner-giiheketkpathjhacgxnfvexostk/Build/Products/Release-iphoneos/XCFrameworkIntermediates/Google-Mobile-Ads-SDK/GoogleMobileAds.framework'
note: Removed stale file '/Users/rominhood/Library/Developer/Xcode/DerivedData/Runner-giiheketkpathjhacgxnfvexostk/Build/Products/Release-iphoneos/gRPC-C++/gRPCCertificates-Cpp.bundle'
note: Removed stale file '/Users/rominhood/Library/Developer/Xcode/DerivedData/Runner-giiheketkpathjhacgxnfvexostk/Build/Products/Release-iphoneos/GTMSessionFetcher/GTMSessionFetcher.framework'
note: Removed stale file
'/Users/rominhood/Library/Developer/Xcode/DerivedData/Runner-giiheketkpathjhacgxnfvexostk/Build/Products/Release-iphoneos/GTMSessionFetcher/GTMSessionFetcher.framework.dSYM/Contents/Resources/DWARF/GTMSess
ionFetcher'
note: Removed stale file '/Users/rominhood/Library/Developer/Xcode/DerivedData/Runner-giiheketkpathjhacgxnfvexostk/Build/Products/Release-iphoneos/path_provider_ios/path_provider_ios.framework'
note: Removed stale file
'/Users/rominhood/Library/Developer/Xcode/DerivedData/Runner-giiheketkpathjhacgxnfvexostk/Build/Products/Release-iphoneos/path_provider_ios/path_provider_ios.framework.dSYM/Contents/Resources/DWARF/path_pr
ovider_ios'
note: Removed stale file '/Users/rominhood/Library/Developer/Xcode/DerivedData/Runner-giiheketkpathjhacgxnfvexostk/Build/Products/Release-iphoneos/nanopb/nanopb.framework'
note: Removed stale file
'/Users/rominhood/Library/Developer/Xcode/DerivedData/Runner-giiheketkpathjhacgxnfvexostk/Build/Products/Release-iphoneos/nanopb/nanopb.framework.dSYM/Contents/Resources/DWARF/nanopb'
note: Removed stale file '/Users/rominhood/Library/Developer/Xcode/DerivedData/Runner-giiheketkpathjhacgxnfvexostk/Build/Products/Release-iphoneos/Libuv-gRPC/uv.framework'
note: Removed stale file '/Users/rominhood/Library/Developer/Xcode/DerivedData/Runner-giiheketkpathjhacgxnfvexostk/Build/Products/Release-iphoneos/Libuv-gRPC/uv.framework.dSYM/Contents/Resources/DWARF/uv'
note: Removed stale file '/Users/rominhood/Library/Developer/Xcode/DerivedData/Runner-giiheketkpathjhacgxnfvexostk/Build/Products/Release-iphoneos/rate_my_app/rate_my_app.framework'
note: Removed stale file
'/Users/rominhood/Library/Developer/Xcode/DerivedData/Runner-giiheketkpathjhacgxnfvexostk/Build/Products/Release-iphoneos/rate_my_app/rate_my_app.framework.dSYM/Contents/Resources/DWARF/rate_my_app'
note: Removed stale file '/Users/rominhood/Library/Developer/Xcode/DerivedData/Runner-giiheketkpathjhacgxnfvexostk/Build/Products/Release-iphoneos/shared_preferences_ios/shared_preferences_ios.framework'
note: Removed stale file '/Users/rominhood/Library/Developer/Xcode/DerivedData/Runner-giiheketkpathjhacgxnfvexostk/Build/Products/Release-iphoneos/leveldb-library/leveldb.framework'
note: Removed stale file
'/Users/rominhood/Library/Developer/Xcode/DerivedData/Runner-giiheketkpathjhacgxnfvexostk/Build/Products/Release-iphoneos/leveldb-library/leveldb.framework.dSYM/Contents/Resources/DWARF/leveldb'
note: Removed stale file
'/Users/rominhood/Library/Developer/Xcode/DerivedData/Runner-giiheketkpathjhacgxnfvexostk/Build/Products/Release-iphoneos/shared_preferences_ios/shared_preferences_ios.framework.dSYM/Contents/Resources/DWA
RF/shared_preferences_ios'
note: Removed stale file '/Users/rominhood/Library/Developer/Xcode/DerivedData/Runner-giiheketkpathjhacgxnfvexostk/Build/Products/Release-iphoneos/google_mobile_ads/google_mobile_ads.framework'
note: Removed stale file '/Users/rominhood/Library/Developer/Xcode/DerivedData/Runner-giiheketkpathjhacgxnfvexostk/Build/Products/Release-iphoneos/GoogleUtilities/GoogleUtilities.framework'
note: Removed stale file
'/Users/rominhood/Library/Developer/Xcode/DerivedData/Runner-giiheketkpathjhacgxnfvexostk/Build/Products/Release-iphoneos/GoogleUtilities/GoogleUtilities.framework.dSYM/Contents/Resources/DWARF/GoogleUtili
ties'
note: Removed stale file '/Users/rominhood/Library/Developer/Xcode/DerivedData/Runner-giiheketkpathjhacgxnfvexostk/Build/Products/Release-iphoneos/fluttertoast/fluttertoast.framework'
note: Removed stale file
'/Users/rominhood/Library/Developer/Xcode/DerivedData/Runner-giiheketkpathjhacgxnfvexostk/Build/Products/Release-iphoneos/fluttertoast/fluttertoast.framework.dSYM/Contents/Resources/DWARF/fluttertoast'
note: Removed stale file '/Users/rominhood/Library/Developer/Xcode/DerivedData/Runner-giiheketkpathjhacgxnfvexostk/Build/Products/Release-iphoneos/firebase_core/firebase_core.framework'
note: Removed stale file '/Users/rominhood/Library/Developer/Xcode/DerivedData/Runner-giiheketkpathjhacgxnfvexostk/Build/Products/Release-iphoneos/cloud_firestore/cloud_firestore.framework'
note: Removed stale file '/Users/rominhood/Library/Developer/Xcode/DerivedData/Runner-giiheketkpathjhacgxnfvexostk/Build/Products/Release-iphoneos/Toast/Toast.framework'
note: Removed stale file '/Users/rominhood/Library/Developer/Xcode/DerivedData/Runner-giiheketkpathjhacgxnfvexostk/Build/Products/Release-iphoneos/Toast/Toast.framework.dSYM/Contents/Resources/DWARF/Toast'
note: Removed stale file '/Users/rominhood/Library/Developer/Xcode/DerivedData/Runner-giiheketkpathjhacgxnfvexostk/Build/Products/Release-iphoneos/Pods_Runner.framework'
note: Removed stale file '/Users/rominhood/Library/Developer/Xcode/DerivedData/Runner-giiheketkpathjhacgxnfvexostk/Build/Products/Release-iphoneos/firebase_auth/firebase_auth.framework'
note: Removed stale file '/Users/rominhood/Library/Developer/Xcode/DerivedData/Runner-giiheketkpathjhacgxnfvexostk/Build/Products/Release-iphoneos/FirebaseCore/FirebaseCore.framework'
note: Removed stale file
'/Users/rominhood/Library/Developer/Xcode/DerivedData/Runner-giiheketkpathjhacgxnfvexostk/Build/Products/Release-iphoneos/FirebaseCore/FirebaseCore.framework.dSYM/Contents/Resources/DWARF/FirebaseCore'
note: Removed stale file '/Users/rominhood/Library/Developer/Xcode/DerivedData/Runner-giiheketkpathjhacgxnfvexostk/Build/Products/Release-iphoneos/PromisesObjC/FBLPromises.framework'
note: Removed stale file
'/Users/rominhood/Library/Developer/Xcode/DerivedData/Runner-giiheketkpathjhacgxnfvexostk/Build/Products/Release-iphoneos/PromisesObjC/FBLPromises.framework.dSYM/Contents/Resources/DWARF/FBLPromises'
note: Removed stale file '/Users/rominhood/Library/Developer/Xcode/DerivedData/Runner-giiheketkpathjhacgxnfvexostk/Build/Products/Release-iphoneos/FirebaseFirestore/FirebaseFirestore.framework'
note: Removed stale file
'/Users/rominhood/Library/Developer/Xcode/DerivedData/Runner-giiheketkpathjhacgxnfvexostk/Build/Products/Release-iphoneos/FirebaseFirestore/FirebaseFirestore.framework.dSYM/Contents/Resources/DWARF/Firebas
eFirestore'
note: Removed stale file '/Users/rominhood/Library/Developer/Xcode/DerivedData/Runner-giiheketkpathjhacgxnfvexostk/Build/Products/Release-iphoneos/FirebaseCoreInternal/FirebaseCoreInternal.framework'
note: Removed stale file
'/Users/rominhood/Library/Developer/Xcode/DerivedData/Runner-giiheketkpathjhacgxnfvexostk/Build/Products/Release-iphoneos/FirebaseCoreInternal/FirebaseCoreInternal.framework.dSYM/Contents/Resources/DWARF/F
irebaseCoreInternal'
note: Removed stale file '/Users/rominhood/Library/Developer/Xcode/DerivedData/Runner-giiheketkpathjhacgxnfvexostk/Build/Products/Release-iphoneos/FirebaseAuth/FirebaseAuth.framework'
note: Removed stale file
'/Users/rominhood/Library/Developer/Xcode/DerivedData/Runner-giiheketkpathjhacgxnfvexostk/Build/Products/Release-iphoneos/FirebaseAuth/FirebaseAuth.framework.dSYM/Contents/Resources/DWARF/FirebaseAuth'
note: Removed stale file '/Users/rominhood/Library/Developer/Xcode/DerivedData/Runner-giiheketkpathjhacgxnfvexostk/Build/Products/Release-iphoneos/Runner.app'
note: Removed stale file '/Users/rominhood/Library/Developer/Xcode/DerivedData/Runner-giiheketkpathjhacgxnfvexostk/Build/Products/Release-iphoneos/Runner.app.dSYM/Contents/Resources/DWARF/Runner'
note: Removed stale file
'/Users/rominhood/Library/Developer/Xcode/DerivedData/Runner-giiheketkpathjhacgxnfvexostk/Build/Products/Release-iphoneos/Runner.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo'
note: Removed stale file '/Users/rominhood/Library/Developer/Xcode/DerivedData/Runner-giiheketkpathjhacgxnfvexostk/Build/Products/Release-iphoneos/Runner.swiftmodule/arm64-apple-ios.abi.json'
note: Removed stale file '/Users/rominhood/Library/Developer/Xcode/DerivedData/Runner-giiheketkpathjhacgxnfvexostk/Build/Products/Release-iphoneos/Runner.swiftmodule/arm64-apple-ios.swiftdoc'
note: Removed stale file '/Users/rominhood/Library/Developer/Xcode/DerivedData/Runner-giiheketkpathjhacgxnfvexostk/Build/Products/Release-iphoneos/Runner.swiftmodule/arm64-apple-ios.swiftmodule'
note: Removed stale file '/Users/rominhood/Library/Developer/Xcode/DerivedData/Runner-giiheketkpathjhacgxnfvexostk/Build/Products/Release-iphoneos/BoringSSL-GRPC/openssl_grpc.framework'
note: Removed stale file
'/Users/rominhood/Library/Developer/Xcode/DerivedData/Runner-giiheketkpathjhacgxnfvexostk/Build/Products/Release-iphoneos/BoringSSL-GRPC/openssl_grpc.framework.dSYM/Contents/Resources/DWARF/openssl_grpc'
note: Removed stale file '/Users/rominhood/Library/Developer/Xcode/DerivedData/Runner-giiheketkpathjhacgxnfvexostk/Build/Products/Release-iphoneos/abseil/absl.framework'
note: Removed stale file '/Users/rominhood/Library/Developer/Xcode/DerivedData/Runner-giiheketkpathjhacgxnfvexostk/Build/Products/Release-iphoneos/abseil/absl.framework.dSYM/Contents/Resources/DWARF/absl'
note: Removed stale file '/Users/rominhood/Library/Developer/Xcode/DerivedData/Runner-giiheketkpathjhacgxnfvexostk/Build/Products/Release-iphoneos/gRPC-Core/grpc.framework'
note: Removed stale file
'/Users/rominhood/Library/Developer/Xcode/DerivedData/Runner-giiheketkpathjhacgxnfvexostk/Build/Products/Release-iphoneos/gRPC-Core/grpc.framework.dSYM/Contents/Resources/DWARF/grpc'
warning: Run script build phase 'Create Symlinks to Header Folders' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the
script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'abseil' from project 'Pods')
warning: Run script build phase 'Run Script' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure
it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'Runner' from project 'Runner')
warning: Run script build phase 'Thin Binary' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure
it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'Runner' from project 'Runner')
warning: Run script build phase 'Create Symlinks to Header Folders' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the
script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'Libuv-gRPC' from project 'Pods')
warning: Run script build phase 'Create Symlinks to Header Folders' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the
script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'BoringSSL-GRPC' from project 'Pods')
note: Removed stale file '/Users/rominhood/Library/Developer/Xcode/DerivedData/Runner-giiheketkpathjhacgxnfvexostk/Build/Products/Release-iphoneos/gRPC-C++/grpcpp.framework'
note: Removed stale file
'/Users/rominhood/Library/Developer/Xcode/DerivedData/Runner-giiheketkpathjhacgxnfvexostk/Build/Products/Release-iphoneos/gRPC-C++/grpcpp.framework.dSYM/Contents/Resources/DWARF/grpcpp'
warning: Run script build phase 'Create Symlinks to Header Folders' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the
script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'gRPC-Core' from project 'Pods')
warning: Run script build phase 'Create Symlinks to Header Folders' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the
script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'gRPC-C++' from project 'Pods')
Result bundle written to path:
/var/folders/n1/_qynvt2d4j3_6mgk3fm106k40000gn/T/flutter_tools.Hg2HE1/flutter_ios_build_temp_dirfk4woH/temporary_xcresult_bundle
Encountered error while building for device.
And this is the flutter doctor result :
[✓] Flutter (Channel stable, 3.3.9, on macOS 13.0.1 22A400 darwin-arm, locale fr-FR)
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 14.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2021.2)
[✓] VS Code (version 1.74.0)
[✓] Connected device (5 available)
[✓] HTTP Host Availability
• No issues found!
Any help would be appreciated, we're completely lost and almost bold.
Try to remove VALID_ARCHS from Project -> Build Settings -> User-Defined
https://github.com/CocoaPods/CocoaPods/issues/8035#issuecomment-764692977
And also clean the build folder under Product -> Clean Build Folder after you removed it
Related
Command line invocation:
/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -workspace Civilsdaily.xcworkspace -configuration Debug -scheme Civilsdaily -destination id=AE1E65F9-A867-4C6A-8ADA-0604A97ADE7B
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Using build description from disk
Build system information
error: Multiple commands produce '/Users/mdamil/Library/Developer/Xcode/DerivedData/Civilsdaily-gjggvnysmawfxocznghsnymtulyq/Build/Products/Debug-iphonesimulator/Civilsdaily.app/Zocial.ttf':
Target 'Civilsdaily' (project 'Civilsdaily') has copy command from '/Users/mdamil/project/phone/Civilsdaily/node_modules/react-native-vector-icons/Fonts/Zocial.ttf' to '/Users/mdamil/Library/Developer/Xcode/DerivedData/Civilsdaily-gjggvnysmawfxocznghsnymtulyq/Build/Products/Debug-iphonesimulator/Civilsdaily.app/Zocial.ttf'
That command depends on command in Target 'Civilsdaily' (project 'Civilsdaily'): script phase “[CP] Copy Pods Resources”
Build system information
error: Multiple commands produce '/Users/mdamil/Library/Developer/Xcode/DerivedData/Civilsdaily-gjggvnysmawfxocznghsnymtulyq/Build/Products/Debug-iphonesimulator/Civilsdaily.app/SimpleLineIcons.ttf':
Target 'Civilsdaily' (project 'Civilsdaily') has copy command from '/Users/mdamil/project/phone/Civilsdaily/node_modules/react-native-vector-icons/Fonts/SimpleLineIcons.ttf' to '/Users/mdamil/Library/Developer/Xcode/DerivedData/Civilsdaily-gjggvnysmawfxocznghsnymtulyq/Build/Products/Debug-iphonesimulator/Civilsdaily.app/SimpleLineIcons.ttf'
That command depends on command in Target 'Civilsdaily' (project 'Civilsdaily'): script phase “[CP] Copy Pods Resources”
Build system information
error: Multiple commands produce '/Users/mdamil/Library/Developer/Xcode/DerivedData/Civilsdaily-gjggvnysmawfxocznghsnymtulyq/Build/Products/Debug-iphonesimulator/Civilsdaily.app/Octicons.ttf':
Target 'Civilsdaily' (project 'Civilsdaily') has copy command from '/Users/mdamil/project/phone/Civilsdaily/node_modules/react-native-vector-icons/Fonts/Octicons.ttf' to '/Users/mdamil/Library/Developer/Xcode/DerivedData/Civilsdaily-gjggvnysmawfxocznghsnymtulyq/Build/Products/Debug-iphonesimulator/Civilsdaily.app/Octicons.ttf'
That command depends on command in Target 'Civilsdaily' (project 'Civilsdaily'): script phase “[CP] Copy Pods Resources”
Essentially, react-native-vector-icons and native-base both bundle the same font files. (And for some reason we also have one of them bundled ourselves; I'll be sure to remove that one.) Before updating to Xcode 10 / Mojave, there was no issue. The only change was to update from Xcode 9 to Xcode 10.
I have upgraded Xcode version13 .I started getting error trying to running ios app and the build always gets failed .
if I choose the option legacy build System it throws error :
The Legacy Build System will be removed in a future release. You can configure the selected build system and this deprecation message in File > Workspace Settings.
If I choose New Build System It throws error : **Multiple commands produce '/Users/username/Library/Developer/Xcode/DerivedData/Project-fqdjurlyjvhihgfubhiaayzhaadv/Build/Products/Debug-iphonesimulator/myproject.app/AntDesign.ttf':
Target 'Project' (project 'Project') has copy command from '/Users/username/Desktop/Project/employee-mobile-app/node_modules/react-native-vector-icons/Fonts/AntDesign.ttf' to '/Users/username/Library/Developer/Xcode/DerivedData/Project-fqdjurlyjvhihgfubhiaayzhaadv/Build/Products/Debug-iphonesimulator/myproject.app/AntDesign.ttf'
That command depends on command in Target 'Project' (project 'project Name'): script phase “[CP] Copy Pods Resources”
**
what all I have tried :
deleted repo and cloned it again
did pod install again
removed some file from Build Phase => copy bundle Resource
Delete Drived data
Choose the option "Don not show a diagnostic issue about build system depreciation "
When I try to build my project I get this same error
error: Multiple commands produce '/Users/shaka0241/Library/Developer/Xcode/DerivedData/tutores-ckkpuvpkfwcscbfxzqbzibwjihlk/Build/Products/Debug-iphonesimulator/tutores.app/Frameworks/Alamofire.framework':
1) Target 'tutores' has copy command from '/Users/shaka0241/ios-tutores/Carthage/Build/iOS/Alamofire.framework' to '/Users/shaka0241/Library/Developer/Xcode/DerivedData/tutores-ckkpuvpkfwcscbfxzqbzibwjihlk/Build/Products/Debug-iphonesimulator/tutores.app/Frameworks/Alamofire.framework'
2) That command depends on command in Target 'tutores': script phase “Carthage Copy Frameworks”
Clean build folder and try deleting the DerivedData folder (and re-build)
Check all your Info.plist files for any inconsistencies (especially when working with SiriKitIntents)
Check your Target Memberships & frameworks you import
Those solved it whenever I had this problem..
Also possible dup:
Xcode 10 Error: Multiple commands produce
This is my error:
Build system information
error: Multiple commands produce '/Users/tanhaeirad/Project/Rahanj/RezasPortal/portalapp/ios/build/Build/Products/Debug-iphonesimulator/portalapp.app/AntDesign.ttf':
1) Target 'portalapp' (project 'portalapp') has copy command from '/Users/tanhaeirad/Project/Rahanj/RezasPortal/portalapp/node_modules/native-base/Fonts/AntDesign.ttf' to '/Users/tanhaeirad/Project/Rahanj/RezasPortal/portalapp/ios/build/Build/Products/Debug-iphonesimulator/portalapp.app/AntDesign.ttf'
2) Target 'portalapp' (project 'portalapp') has copy command from '/Users/tanhaeirad/Project/Rahanj/RezasPortal/portalapp/node_modules/react-native-vector-icons/Fonts/AntDesign.ttf' to '/Users/tanhaeirad/Project/Rahanj/RezasPortal/portalapp/ios/build/Build/Products/Debug-iphonesimulator/portalapp.app/AntDesign.ttf'
but my code run in simulator
i code with react native and this error shown when i install react-native base
In Xcode, go to < one of the library target names > => Build Phases => Copy Bundle Resources and remove the font that's causing the issue. This should ensure that it only gets copied into the app package once. It probably doesn't matter which of those two libraries you remove it from.
Xcode 10 produces this warning when running xcodebuild in a run script phase of a build target. I do this to produce the binary for the other platform (simulator/real device) to lipo into a fat binary for distribution. The warning is produced for every file in the target intermediates directory, for example:
warning: Stale file '/Users/nick/Library/Developer/Xcode/DerivedData/App-ctjxvxdmomwoobfgvvasfhwvcnhy/Build/Intermediates.noindex/Library-Target.build/Debug-iphonesimulator/Sub-Library-Target.build/Objects-normal/i386/Sub-Library-Class.o' is located outside of the allowed root paths.
What are the root paths? Why is this warning produced? Is there any way I can resolve or suppress it?
I had it on Xcode 11.2
solved it by
1. Clean (Cmd+Shift+K) and then:
Cmd+Shift+R ( build for Running )
For some reason you might have copied the .framework to an external path. To solve this annoying warning you should run (as sudo) the command to delete the framework:
In your case:
sudo rm -rf /Users/nick/Library/Developer/Xcode/DerivedData/App-ctjxvxdmomwoobfgvvasfhwvcnhy/Build/Intermediates.noindex/Library-Target.build/Debug-iphonesimulator/Sub-Library-Target.build/Objects-normal/i386/Sub-Library-Class.o
If you are using Objective-C to create frameworks you may end up with those anoying warnings. The solution I've found is to add
-UseModernBuildSystem=NO
at end of every xcodebuild command in your Run Script.