I am trying to run an expo build so that I can use it in the XCode simulator.
I am running on a Macbook M1 chip.
I have simply opened the Expo folder from xCode, then try to click on the run button and I get the following error:
Build fails with the below errors
The following build commands failed:
CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler (in target 'lottie-react-native' from project 'Pods')
CompileSwiftSources normal x86_64 com.apple.xcode.tools.swift.compiler (in target 'ExpoModulesCore' from project 'Pods')
CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler (in target 'ExpoModulesCore' from project 'Pods')
CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler (in target 'expo-dev-menu' from project 'Pods')
CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler (in target 'expo-dev-launcher' from project 'Pods')
PhaseScriptExecution [CP-User]\ Generate\ Specs /Users/username/Library/Developer/Xcode/DerivedData/appname/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FBReactNativeSpec.build/Script-84523FB004E42E06A56C6DE861F4376B.sh (in target 'FBReactNativeSpec' from project 'Pods')
Tried below resolution options but doesn't seem to work
Re-installation of pod file and its packages,
Excluding the arm64 arch from project in xcode
Changing the arch to Standard architectures (including 64-bit) (armv7, armv7s, arm64)
pod update, pod disintegrate, pod install
open Xcode via rosetta, change the arch in pod file in code to arm64
Versions:
npm version - 6.14.17
node version - v14.19.2
expo version -5.4.3
react-native version- 7.0.3
I've been unable to run my React Native project since Xcode updated to 12.5. I have a feeling the problem is with Flipper, but when I comment out Flipper from my Podfile, I get similar errors for other modules. Here is the error I get with Flipper installed:
** BUILD FAILED **
The following build commands failed:
CompileC /Users/mohammedibrahim/Library/Developer/Xcode/DerivedData/DinDin-cpajpwxpvpxihbgmxeemayoewtno/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Flipper.build/Objects-normal/x86_64/FlipperRSocketResponder.o /Users/mohammedibrahim/Documents/code/dindin/ios/Pods/Flipper/xplat/Flipper/FlipperRSocketResponder.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
after two week... I successed upload xcode and catalina OS , zsh ... all could be good but have always error and can't launch my app on my physical device or simulator. Always error after Xcode build.
Things interesting, I remove App_review package from pubspec.yaml but I have always error with it...
If I launch flutter example it works, but If I use certain package like admob who worked before, or app review I have this errors. I can remove app_review package but remove ad mob no...
Edit: I remove all packages who show error, but have always this error
Here is my physical device error :
Xcode's output:
↳
ld: framework not found FBLPromises
clang: error: linker command failed with exit code 1 (use -v to see invocation)
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description
Here is the error when I use simulator :
Xcode's output:
↳
ld: framework not found FBLPromises
clang: error: linker command failed with exit code 1 (use -v to see invocation)
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description
warning: Mapping architecture armv7 to i386. Ensure that this target's Architectures and Valid Architectures build settings are configured correctly for the iOS Simulator platform. (in target 'in_app_purchase' from project 'Pods')
warning: Mapping architecture arm64 to x86_64. Ensure that this target's Architectures and Valid Architectures build settings are configured correctly for the iOS Simulator platform. (in target 'in_app_purchase' from project 'Pods')
warning: Mapping architecture arm64 to x86_64. Ensure that this target's Architectures and Valid Architectures build settings are configured correctly for the iOS Simulator platform. (in target 'Runner' from project 'Runner')
warning: Mapping architecture armv7s to i386. Ensure that this target's Architectures and Valid Architectures build settings are configured correctly for the iOS Simulator platform. (in target 'Runner' from project 'Runner')
warning: Mapping architecture armv7 to i386. Ensure that this target's Architectures and Valid Architectures build settings are configured correctly for the iOS Simulator platform. (in target 'Runner' from project 'Runner')
Open Runner.xcodeproj with xCode in ios folder, choose File menu, then select "Project Settings...". In Build System, choose Legacy Build System and run again.
I have select legacy build system
, now I have this last error
=== BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Debug ===
ld: framework not found FBLPromises
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Please see this thread and ensure that you are not accidentally overriding the VALID_ARCHS build setting: What does warning "Mapping architecture arm64 to x86_64" mean?
I have been facing an issue that fails to build Alamofire using Carthage.
My environment is as follows :
OSX 10.10.5
Xcode 6.4
Also 7.0 and 7.1 are already installed.
Carthage 0.9.3
Trying to install Alamofire 1.3.1 (latest Swift 1.2 release)
I tried the command below then error occurs.
$ echo 'github "Alamofire/Alamofire" "1.3.1"' > Cartfile ; carthage update --platform ios
*** Cloning Alamofire
*** Checking out Alamofire at "1.3.1"
*** xcodebuild output can be found in /var/folders/ch/jcgf09f15hl391jn849d5yr80000gn/T/carthage-xcodebuild.ZM1b0b.log
*** Building scheme "Alamofire iOS" in Alamofire.xcworkspace
** BUILD FAILED **
The following build commands failed:
Ld /Users/username/Library/Developer/Xcode/DerivedData/Alamofire-fmnpbxqgrcncdhbtipavvywlxagy/Build/Intermediates/Alamofire.build/Release-iphoneos/Alamofire\ iOS.build/Objects-normal/arm64/Alamofire normal arm64
(1 failure)
clang: error: linker command failed with exit code 1 (use -v to see invocation)
A shell task failed with exit code 65:
** BUILD FAILED **
The following build commands failed:
Ld /Users/username/Library/Developer/Xcode/DerivedData/Alamofire-fmnpbxqgrcncdhbtipavvywlxagy/Build/Intermediates/Alamofire.build/Release-iphoneos/Alamofire\ iOS.build/Objects-normal/arm64/Alamofire normal arm64
(1 failure)
Then I tried to build using Xcode.
Open Alamofire.xcworkspace and hit Cmd+B then fails with error below :
Xcode error image
I have never seen the warning Unable to find swiftCore; please set SWIFT_LIBRARY_PATH (currentry '') to the folder containing swiftCore
I think that this warning relates to the issue, but I don't know how to solve this one...
Are there any solutions?
Error information:
clang: error: invalid architecture 'arm' for deployment target '-mios-simulator-version-min=4.3'
What's the different between command xcodebuild and Product-->Build?