Hi,
I am trying to build an app for ios using EAS.
The app is working perfectly when tested locally.
I followed all the steps from the documentation. However, during the build process, I encounter the fastlane error.
I have done a lot of research but I found nothing helpful.
Will be grateful for any clues.
Best Regards,
Adrian
eas.json:
{
"builds": {
"ios": {
"release": {
"workflow": "managed",
"cache": {
"key":"1"
}
}
}
}
}
package.json:
{
"main": "node_modules/expo/AppEntry.js",
"scripts": {
"start": "expo start",
"android": "expo start --android",
"ios": "expo start --ios",
"web": "expo start --web",
"eject": "expo eject"
},
"dependencies": {
"@react-native-community/clipboard": "^1.5.1",
"@react-native-community/masked-view": "^0.1.10",
"@react-native-community/slider": "^3.0.3",
"buffer": "^5.7.1",
"expo": "^39.0.5",
"expo-file-system": "^9.3.0",
"expo-gl": "~9.1.1",
"expo-gl-cpp": "~9.1.2",
"expo-image-manipulator": "^8.3.0",
"expo-image-picker": "~9.1.1",
"expo-linear-gradient": "^8.3.1",
"expo-media-library": "~9.2.1",
"expo-pixi": "^1.2.0",
"expo-status-bar": "~1.0.2",
"gl-react": "^4.1.0",
"gl-react-expo": "^4.1.0",
"gl-react-native": "^5.0.0",
"moment": "^2.29.1",
"react": "16.13.1",
"react-dom": "16.13.1",
"react-native": "https://github.com/expo/react-native/archive/sdk-39.0.4.tar.gz",
"react-native-fast-image": "^8.3.4",
"react-native-gesture-handler": "~1.7.0",
"react-native-gl-image-filters": "^0.4.0",
"react-native-image-crop-picker": "^0.35.1",
"react-native-paper": "^4.5.0",
"react-native-reanimated": "~1.13.0",
"react-native-responsive-fontsize": "^0.5.0",
"react-native-screens": "~2.10.1",
"react-native-unimodules": "^0.12.0",
"react-native-web": "~0.13.12",
"react-navigation": "^4.4.4",
"react-navigation-drawer": "^2.6.0",
"react-navigation-header-buttons": "^6.0.0",
"react-navigation-material-bottom-tabs": "^2.3.3",
"react-navigation-stack": "^2.10.2",
"react-navigation-tabs": "^2.10.1",
"react-redux": "^7.2.2",
"redux": "^4.0.5",
"redux-thunk": "^2.3.0",
"@react-native-community/async-storage": "~1.12.0"
},
"devDependencies": {
"@babel/core": "~7.9.0",
"redux-devtools-extension": "^2.13.8"
},
"private": true
}
Log beginning:
Creating Gymfile
Gymfile created
Successfully loaded '/Users/expo/workingdir/build/ios/Gymfile' 📄
+-----------------------+---------------------------------------------------------------------------------------------------------------------------------------------+
| Detected Values from './Gymfile' |
+-----------------------+---------------------------------------------------------------------------------------------------------------------------------------------+
| suppress_xcode_output | true |
| clean | false |
| scheme | migapkaapptest |
| configuration | Release |
| export_options | |
| export_xcargs | OTHER_CODE_SIGN_FLAGS="--keychain /var/folders/97/73j93h690g9gdn54bh_zskm40000gn/T/turtle-v2-5a40f393-c1db-4351-be97-5e4076c8e239.keychain" |
| disable_xcpretty | true |
| buildlog_path | /Users/expo/workingdir/logs |
| output_directory | ./build |
+-----------------------+---------------------------------------------------------------------------------------------------------------------------------------------+
Resolving Swift Package Manager dependencies...
$ xcodebuild -resolvePackageDependencies -workspace ./migapkaapptest.xcworkspace -scheme migapkaapptest -configuration Release
▸ Command line invocation:
▸ /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -resolvePackageDependencies -workspace ./migapkaapptest.xcworkspace -scheme migapkaapptest -configuration Release
▸ resolved source packages:
$ xcodebuild -showBuildSettings -workspace ./migapkaapptest.xcworkspace -scheme migapkaapptest -configuration Release
Command timed out after 3 seconds on try 1 of 4, trying again with a 6 second timeout...
Detected provisioning profile mapping: {:"com.migapka.migapka-test"=>"015b5728-7816-4d95-a471-6c3a4d1fc7ab"}
+--------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------+
| Summary for gym 2.178.0 |
+--------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------+
| workspace | ./migapkaapptest.xcworkspace |
| scheme | migapkaapptest |
| clean | false |
| output_directory | ./build |
| output_name | migapka-test |
| configuration | Release |
| silent | false |
| skip_package_ipa | false |
| skip_package_pkg | false |
| export_options.method | app-store |
| export_options.provisioningProfiles.com.migapka.migapka-test | 015b5728-7816-4d95-a471-6c3a4d1fc7ab |
| export_xcargs | OTHER_CODE_SIGN_FLAGS="--keychain /var/folders/97/73j93h690g9gdn54bh_zskm40000gn/T/turtle-v2-5a40f393-c1db-4351-be97-5e4076c8e239.keychain" |
| build_path | /Users/expo/Library/Developer/Xcode/Archives/2021-06-10 |
| result_bundle | false |
| buildlog_path | /Users/expo/workingdir/logs |
| destination | generic/platform=iOS |
| suppress_xcode_output | true |
| disable_xcpretty | true |
| skip_profile_detection | false |
| skip_package_dependencies_resolution | false |
| disable_package_automatic_updates | false |
| use_system_scm | false |
| xcode_path | /Applications/Xcode.app |
+--------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------+
problematic part (I guess):
❌ (ios/Pods/Headers/Public/libevent/event.h:44:10)
42 | #endif
43 |
> 44 | #include <event2/event-config.h>
| ^ 'event2/event-config.h' file not found
45 | #ifdef EVENT__HAVE_SYS_TYPES_H
46 | #include <sys/types.h>
47 | #endif
› Compiling react-native Pods/Flipper » FlipperConnectionManagerImpl.cpp
❌ (ios/Pods/Headers/Public/Flipper-Folly/folly/concurrency/CacheLocality.h:324:12)
322 |
323 | FOLLY_EXPORT FOLLY_ALWAYS_INLINE static CpuCache& cpuCache() {
> 324 | static thread_local CpuCache cpuCache;
| ^ thread-local storage is not supported for the current target
325 | return cpuCache;
326 | }
327 |
❌ (ios/Pods/Headers/Public/Flipper-Folly/folly/SharedMutex.h:300:32)
298 | private:
299 | static unsigned tid() {
> 300 | /* library-local */ static thread_local unsigned cached = 0;
| ^ thread-local storage is not supported for the current target
301 | auto z = cached;
302 | if (z == 0) {
303 | z = static_cast<unsigned>(getOSThreadID());
❌ (ios/Pods/Headers/Public/Flipper-Folly/folly/SharedMutex.h:965:12)
963 | tls_lastTokenlessSlot() {
964 | static std::atomic<uint32_t> non_tl{};
> 965 | static thread_local std::atomic<uint32_t> tl{};
| ^ thread-local storage is not supported for the current target
966 | return kIsMobile ? non_tl : tl;
967 | }
968 |
❌ (ios/Pods/Headers/Public/Flipper-Folly/folly/SharedMutex.h:973:12)
971 | tls_lastDeferredReaderSlot() {
972 | static std::atomic<uint32_t> non_tl{};
> 973 | static thread_local std::atomic<uint32_t> tl{};
| ^ thread-local storage is not supported for the current target
974 | return kIsMobile ? non_tl : tl;
975 | }
976 |
❌ (ios/Pods/Headers/Public/libevent/event.h:44:10)
42 | #endif
43 |
> 44 | #include <event2/event-config.h>
| ^ 'event2/event-config.h' file not found
45 | #ifdef EVENT__HAVE_SYS_TYPES_H
46 | #include <sys/types.h>
47 | #endif
› Compiling react-native Pods/Flipper » FlipperClient.cpp
› Compiling react-native Pods/Flipper » Flipper-dummy.m
› Compiling react-native Pods/Flipper » ConnectionContextStore.cpp
› Compiling react-native Pods/Flipper » CertificateUtils.cpp
› Compiling react-native Pods/Flipper » Log.cpp
› Compiling react-native Pods/Flipper » FlipperStep.cpp
⚠️ Pods/RNFastImage: iOS@8.0 deployment version mismatch, expected >= 9.0 <= 14.4.99
⚠️ Pods/RNImageCropPicker: iOS@8.0 deployment version mismatch, expected >= 9.0 <= 14.4.99
⚠️ Pods/boost-for-react-native: iOS@8.0 deployment version mismatch, expected >= 9.0 <= 14.4.99
⚠️ Pods/Flipper-Glog: iOS@8.0 deployment version mismatch, expected >= 9.0 <= 14.4.99
⚠️ Pods/Flipper-PeerTalk: iOS@8.4 deployment version mismatch, expected >= 9.0 <= 14.4.99
⚠️ Pods/RNImageCropPicker-QBImagePicker: iOS@8.0 deployment version mismatch, expected >= 9.0 <= 14.4.99
⚠️ Pods/YogaKit: iOS@8.0 deployment version mismatch, expected >= 9.0 <= 14.4.99
⚠️ Pods/SDWebImageWebPCoder: iOS@8.0 deployment version mismatch, expected >= 9.0 <= 14.4.99
⚠️ Pods/TOCropViewController: iOS@8.0 deployment version mismatch, expected >= 9.0 <= 14.4.99
⚠️ Pods/Flipper: iOS@8.0 deployment version mismatch, expected >= 9.0 <= 14.4.99
▸ ** ARCHIVE FAILED **
▸ The following build commands failed:
▸ CompileC /Users/expo/Library/Developer/Xcode/DerivedData/migapkaapptest-gjkozztoeaavnigqldrqjjdsfuoa/Build/Intermediates.noindex/ArchiveIntermediates/migapkaapptest/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/Flipper.build/Objects-normal/armv7/FlipperRSocketResponder.o /Users/expo/workingdir/build/ios/Pods/Flipper/xplat/Flipper/FlipperRSocketResponder.cpp normal armv7 c++ com.apple.compilers.llvm.clang.1_0.compiler
▸ (1 failure)
** ARCHIVE FAILED **
The following build commands failed:
CompileC /Users/expo/Library/Developer/Xcode/DerivedData/migapkaapptest-gjkozztoeaavnigqldrqjjdsfuoa/Build/Intermediates.noindex/ArchiveIntermediates/migapkaapptest/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/Flipper.build/Objects-normal/armv7/FlipperRSocketResponder.o /Users/expo/workingdir/build/ios/Pods/Flipper/xplat/Flipper/FlipperRSocketResponder.cpp normal armv7 c++ com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
Exit status: 65
+-------------+-------------------------+
| Build environment |
+-------------+-------------------------+
| xcode_path | /Applications/Xcode.app |
| gym_version | 2.178.0 |
| sdk | iPhoneOS14.4.sdk |
+-------------+-------------------------+
Looks like fastlane ran into a build/archive error with your project
It's hard to tell what's causing the error, so we wrote some guides on how
to troubleshoot build and signing issues: https://docs.fastlane.tools/codesigning/getting-started/
Before submitting an issue on GitHub, please follow the guide above and make
sure your project is set up correctly.
fastlane uses `xcodebuild` commands to generate your binary, you can see the
the full commands printed out in yellow in the above log.
Make sure to inspect the output above, as usually you'll find more error information there
[stderr] [!] Error building the application - see the log above
Error: Fastlane build failed with unknown error. Please refer to the "Run fastlane" and "Xcode Logs" phases.
Fastlane errors in most cases are not printed at the end of the output, so you may not find any useful information in the last lines of output when looking for an error message.