I'm working in a Expo ejected project (Expo SDK 44, WatermelonDB 0.24.0). When I try to build de project (eas build), I get those erros:
[RUN_FASTLANE] › Compiling react-native-svg Pods/RNSVG » RNSVGMarker.m
[RUN_FASTLANE] ▸ ** ARCHIVE FAILED **
[RUN_FASTLANE] ▸ The following build commands failed:
[RUN_FASTLANE] ▸ CompileSwift normal arm64 (in target 'WatermelonDB' from project 'Pods')
[RUN_FASTLANE] ▸ CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler (in target 'WatermelonDB' from project 'Pods')
[RUN_FASTLANE] ▸ CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler (in target 'expo-dev-menu' from project 'Pods')
```
Any help? Any clue?
Thanks,
Martín
Related
** BUILD FAILED **
The following build commands failed:
SwiftEmitModule normal x86_64 Emitting\ module\ for\ ReactNativeElement (in target 'ReactNativeElement' from project 'Pods')
(1 failure)
I am facing the above issue with New Mac M1 with Xcode 13.1.
I am running fastlane and getting this error
** TEST BUILD FAILED **
[21:03:58]: ▸ The following build commands failed:
[21:03:58]: ▸ MergeSwiftModule normal x86_64
[21:03:58]: ▸ CompileSwiftSources normal x86_64 com.apple.xcode.tools.swift.compiler
[21:03:58]: ▸ (2 failures)
❌ error: merge-module command failed with exit code 1 (use -v to see invocation)
Select your project in Xcode, and go to "Build Settings". Scroll down until you see "Search Paths", and finally, "Library Search Paths". Replace "$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)" with "$(SDKROOT)/usr/lib/swift".
I have install pod with
sudogem install cocoapod
and i go to cd ios
pod install
I back to the root folder with cd.. and then i got an error like this in npx react-native run-ios
Command line invocation:
/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -workspace Coba.xcworkspace -configuration Debug -scheme Coba -destination id=FF773279-AF11-427F-B143-6710FDC96901
User defaults from command line:
IDEPackageSupportUseBuiltinSCM = YES
note: Using new build system
note: Planning
Analyze workspace
Create build description
Build description signature: 487e43c39af0dba249eeade4b390f99c
Build description path: /Users/mymac/Library/Developer/Xcode/DerivedData/Coba-acjtaskcgfbphugcderpdiliwjum/Build/Intermediates.noindex/XCBuildData/487e43c39af0dba249eeade4b390f99c-desc.xcbuild
note: Build preparation complete
note: Building targets in dependency order
CompileC /Users/mymac/Library/Developer/Xcode/DerivedData/Coba-acjtaskcgfbphugcderpdiliwjum/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RCT-Folly.build/Objects-normal/x86_64/json.o /Users/mymac/Nicholas/Mobile\ -\ React\ Native/Coba/ios/Pods/RCT-Folly/folly/json.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'RCT-Folly' from project 'Pods')
cd /Users/mymac/Nicholas/Mobile\ -\ React\ Native/Coba/ios/Pods
export LANG\=en_US.US-ASCII
CompileC /Users/mymac/Library/Developer/Xcode/DerivedData/Coba-acjtaskcgfbphugcderpdiliwjum/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RCT-Folly.build/Objects-normal/x86_64/String.o /Users/mymac/Nicholas/Mobile\ -\ React\ Native/Coba/ios/Pods/RCT-Folly/folly/String.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'RCT-Folly' from project 'Pods')
cd /Users/mymac/Nicholas/Mobile\ -\ React\ Native/Coba/ios/Pods
export LANG\=en_US.US-ASCII
CompileC /Users/mymac/Library/Developer/Xcode/DerivedData/Coba-acjtaskcgfbphugcderpdiliwjum/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RCT-Folly.build/Objects-normal/x86_64/SysUio.o /Users/mymac/Nicholas/Mobile\ -\ React\ Native/Coba/ios/Pods/RCT-Folly/folly/portability/SysUio.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'RCT-Folly' from project 'Pods')
cd /Users/mymac/Nicholas/Mobile\ -\ React\ Native/Coba/ios/Pods
export LANG\=en_US.US-ASCII
Native/Coba/ios/Pods/Headers/Private/RCT-Folly/folly/net/NetOps.h:25:
/Users/mymac/Nicholas/Mobile - React Native/Coba/ios/Pods/Headers/Private/RCT-Folly/folly/portability/Time.h:47:9: warning: 'CLOCK_REALTIME' macro redefined [-Wmacro-redefined]
#define CLOCK_REALTIME 0
** BUILD FAILED **
The following build commands failed:
CompileC /Users/mymac/Library/Developer/Xcode/DerivedData/Coba-acjtaskcgfbphugcderpdiliwjum/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RCT-Folly.build/Objects-normal/x86_64/SysUio.o /Users/mymac/Nicholas/Mobile\ -\ React\ Native/Coba/ios/Pods/RCT-Folly/folly/portability/SysUio.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'RCT-Folly' from project 'Pods')
(1 failure)
if someone can help me for solving this problem, i got so confuse for resolve this problem. I have try many thins in stackoverflow but still like this.
Installing cocoapods with brew solved a lot of my problems. It might help you as well
I'm trying to build in build-flavors in my app. Android no problem but iOS gives an error when I try to export the ipa.
terminal:
➜ roger git:(ios-flavors) flutter build ios --flavor development
Building be.modero.rogerapp.development for device (ios-release)...
Automatically signing iOS for device deployment using specified development team in Xcode project: **********
Running pod install... 7.8s
Running Xcode build...
└─Compiling, linking and signing... 24.1s
Xcode build done. 179.1s
Built /.../build/ios/iphoneos/Runner.app.
➜ roger git:(ios-flavors) xcodebuild -sdk iphoneos -configuration Alpha -workspace ios/Runner.xcworkspace -scheme development build -verbose | xcpretty
error:
▸ Compiling GeneratedPluginRegistrant.m
❌ /.../ios/Runner/GeneratedPluginRegistrant.m:12:9: module 'camera' not found
#import camera;
^
▸ Compiling Runner_vers.c
** BUILD FAILED **
The following build commands failed:
CompileC /Users/wim/Library/Developer/Xcode/DerivedData/Runner-dhynqmoqlyqjqtaxqfpznxnuxyab/Build/Intermediates.noindex/Runner.build/Debug-integration-iphoneos/Runner.build/Objects-normal/arm64/GeneratedPluginRegistrant.o /.../ios/Runner/GeneratedPluginRegistrant.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'Runner' from project 'Runner')
(1 failure)
iOS archive build generation is succeed when I generate from xcode but it fails in Appcircle.io with the following error. If I disable "use_flipper" from the PodFile, "pre_install" & "post_install" scripts are not running and build is failed in my xcode itself
** ARCHIVE FAILED **
The following build commands failed:
CompileC .../_appcircle_temp/appcircle_export_archive/DerivedData/Build/Intermediates.noindex/ArchiveIntermediates/MyProject/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/Flipper-Folly.build/Objects-normal/armv7/VirtualEventBase.o .../_appcircle_temp/Repository/ios/Pods/Flipper-Folly/folly/io/async/VirtualEventBase.cpp normal armv7 c++ com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
warning: Could not read serialized diagnostics file: Cannot Load File: Failed to open diagnostics file (in target 'Flipper-Folly' from project 'Pods')
warning: no rule to process file '.../_appcircle_temp/Repository/ios/Pods/Flipper-RSocket/rsocket/benchmarks/CMakeLists.txt' of type 'text' for architecture 'armv7' (in target 'Flipper-RSocket' from project 'Pods')
warning: no rule to process file '.../_appcircle_temp/Repository/ios/Pods/Flipper-RSocket/rsocket/benchmarks/README.md' of type 'net.daringfireball.markdown' for architecture 'armv7' (in target 'Flipper-RSocket' from project 'Pods')
warning: no rule to process file '.../_appcircle_temp/Repository/ios/Pods/Flipper-RSocket/rsocket/README.md' of type 'net.daringfireball.markdown' for architecture 'armv7' (in target 'Flipper-RSocket' from project 'Pods')
warning: no rule to process file '.../_appcircle_temp/Repository/ios/Pods/Flipper-RSocket/rsocket/benchmarks/CMakeLists.txt' of type 'text' for architecture 'arm64' (in target 'Flipper-RSocket' from project 'Pods')
warning: no rule to process file '.../_appcircle_temp/Repository/ios/Pods/Flipper-RSocket/rsocket/benchmarks/README.md' of type 'net.daringfireball.markdown' for architecture 'arm64' (in target 'Flipper-RSocket' from project 'Pods')
warning: no rule to process file '.../_appcircle_temp/Repository/ios/Pods/Flipper-RSocket/rsocket/README.md' of type 'net.daringfireball.markdown' for architecture 'arm64' (in target 'Flipper-RSocket' from project 'Pods')
##[error] 3/22/2021 3:24:36 AM EXCEPTION
##[error] ##[error] Process exit with error code: 1
##[error] 42gez13d.r50 Error at step: Xcodebuild for Devices
##[error] EXCEPTION: ##[error] Process exit with error code: 1