-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Detox build failed #3191
Labels
Comments
@hackgod2000 how did you manage to solve it? :/ |
@hackgod2000 Would love some insight on this as well. |
yes i managed to solve it. Will share the method used |
Thanks @hackgod2000 |
@prasad-yashdeep Could you please share your method you used in here please? Thanks a lot |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
I get the following error on running detox build -c ios
my .detoxrc.json is as follows:
{
"testRunner": "jest",
"runnerConfig": "e2e/config.json",
"skipLegacyWorkersInjection": true,
"apps": {
"ios": {
"type": "ios.app",
"binaryPath": "ios/build/Build/Products/Release-iphonesimulator/TLS.app",
"build": "xcodebuild -workspace ios/TLS.xcworkspace -scheme TLS -sdk iphonesimulator -derivedDataPath ios/build"
},
"devices": {
"simulator": {
"type": "ios.simulator",
"device": {
"type": "iPhone 12 Pro Max"
}
},
"emulator": {
"type": "android.emulator",
"device": {
"avdName": "Pixel_API_28_AOSP"
},
"readonly": true
}
},
"configurations": {
"ios": {
"device": "simulator",
"app": "ios"
},
"android": {
"device": "emulator",
"app": "android"
}
}
}
I am getting the following error output
detox build -c ios -v
detox[25938] INFO: [build.js] xcodebuild -workspace ios/TLS.xcworkspace -scheme TLS -sdk iphonesimulator -derivedDataPath ios/build
objc[25939]: Class AMSupportURLConnectionDelegate is implemented in both /usr/lib/libauthinstall.dylib (0x1f70cab90) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x1063a42c8). One of the two will be used. Which one is undefined.
objc[25939]: Class AMSupportURLSession is implemented in both /usr/lib/libauthinstall.dylib (0x1f70cabe0) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x1063a4318). One of the two will be used. Which one is undefined.
Command line invocation:
/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -workspace ios/TLS.xcworkspace -scheme TLS -sdk iphonesimulator -derivedDataPath ios/build
User defaults from command line:
IDEDerivedDataPathOverride = /Users/decentral/Documents/GitHub/ALT/App/ios/build
IDEPackageSupportUseBuiltinSCM = YES
Build settings from command line:
SDKROOT = iphonesimulator15.2
--- xcodebuild: WARNING: Using the first of multiple matching destinations:
{ platform:iOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-iphonesimulator:placeholder, name:Any iOS Simulator Device }
{ platform:iOS Simulator, id:0F807B5A-A448-4EB3-940B-3591A2F9305C, OS:15.2, name:iPhone 8 }
{ platform:iOS Simulator, id:2726A442-4D75-4F88-8A8B-7308B84A1912, OS:15.2, name:iPhone 8 Plus }
{ platform:iOS Simulator, id:80731926-0A36-41B7-AB6F-E7E4157910B1, OS:15.2, name:iPhone 11 }
{ platform:iOS Simulator, id:ECC92AD3-8F30-441E-B008-0D349BCE35FD, OS:15.2, name:iPhone 11 Pro }
{ platform:iOS Simulator, id:3F73416E-14B3-4C9F-9D89-0AFC30407774, OS:15.2, name:iPhone 11 Pro Max }
{ platform:iOS Simulator, id:0C3E409E-B686-41C7-B18F-66A2F428AA87, OS:15.2, name:iPhone 12 }
{ platform:iOS Simulator, id:45E34DF4-4C60-40C1-8715-857FCE26007B, OS:15.2, name:iPhone 12 Pro }
{ platform:iOS Simulator, id:27D21E84-DAD7-46B4-BEE4-1449526367FB, OS:15.2, name:iPhone 12 Pro Max }
{ platform:iOS Simulator, id:FE9830A6-4976-4286-A592-977A549A321D, OS:15.2, name:iPhone 12 mini }
{ platform:iOS Simulator, id:FCAB0335-A3D5-462E-B8D7-0451D74FE1E0, OS:15.2, name:iPhone 13 }
{ platform:iOS Simulator, id:E72E137B-7BED-41DA-8DEE-17CCB7101DCE, OS:15.2, name:iPhone 13 Pro }
{ platform:iOS Simulator, id:C48EF3C3-44F4-459C-AF5E-429743FF274E, OS:15.2, name:iPhone 13 Pro Max }
{ platform:iOS Simulator, id:6CD5FE21-9D39-43BA-B923-4D0B778179D0, OS:15.2, name:iPhone 13 mini }
{ platform:iOS Simulator, id:F7C65223-81A7-433A-B0DD-6E81CB55EBEC, OS:15.2, name:iPhone SE (2nd generation) }
{ platform:iOS Simulator, id:B2CDF5E3-9488-4AB7-9897-7E34558FDC6E, OS:15.2, name:iPod touch (7th generation) }
{ platform:macOS, arch:arm64, variant:Designed for [iPad,iPhone], id:00008103-001C79E034A0801E }
{ platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device }
{ platform:iOS Simulator, id:00679249-EF21-48B3-9FA9-0580E6883451, OS:15.2, name:iPad (9th generation) }
{ platform:iOS Simulator, id:C03EA246-78E9-40BA-B6DC-FF48FFDB6062, OS:15.2, name:iPad Air (4th generation) }
{ platform:iOS Simulator, id:69392F53-2147-4CA4-B7B1-3E52E3E66979, OS:15.2, name:iPad Pro (9.7-inch) }
{ platform:iOS Simulator, id:650F4B66-7773-4D0D-AFAD-9C1DCC91ECD9, OS:15.2, name:iPad Pro (11-inch) (3rd generation) }
{ platform:iOS Simulator, id:C92388DB-5DEF-4F11-B08B-D346B17773FF, OS:15.2, name:iPad Pro (12.9-inch) (5th generation) }
{ platform:iOS Simulator, id:0E8924CF-29DA-44FA-A795-4F38466C218D, OS:15.2, name:iPad mini (6th generation) }
note: Using new build system
note: Planning
Analyze workspace
Create build description
Build description signature: 2ab25de8554ef7c698c6640856d3a91f
Build description path: /Users/decentral/Documents/GitHub/ALT/App/ios/build/Build/Intermediates.noindex/XCBuildData/2ab25de8554ef7c698c6640856d3a91f-desc.xcbuild
note: Build preparation complete
note: Building targets in dependency order
PhaseScriptExecution Start\ Packager /Users/decentral/Documents/GitHub/ALT/App/ios/build/Build/Intermediates.noindex/TLS.build/Debug-iphonesimulator/TLS.build/Script-FD10A7F022414F080027D42C.sh (in target 'TLS' from project 'TLS')
cd /Users/decentral/Documents/GitHub/ALT/App/ios
/bin/sh -c /Users/decentral/Documents/GitHub/ALT/App/ios/build/Build/Intermediates.noindex/TLS.build/Debug-iphonesimulator/TLS.build/Script-FD10A7F022414F080027D42C.sh
Connection to localhost port 8081 [tcp/sunproxyadmin] succeeded!
Ld /Users/decentral/Documents/GitHub/ALT/App/ios/build/Build/Intermediates.noindex/TLS.build/Debug-iphonesimulator/TLS.build/Objects-normal/i386/Binary/TLS normal i386 (in target 'TLS' from project 'TLS')
cd /Users/decentral/Documents/GitHub/ALT/App/ios
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -target i386-apple-ios10.0-simulator -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk -L/Users/decentral/Documents/GitHub/ALT/App/ios/build/Build/Products/Debug-iphonesimulator -context -L/Users/decentral/Documents/GitHub/ALT/App/ios/build/Build/Products/Debug-iphonesimulator/react-native-simple-toast -L/Users/decentral/Documents/GitHub/ALT/App/ios/build/Build/Products/Debug-iphonesimulator/toolbar-android -L/Users/decentral/Documents/GitHub/ALT/App/ios/Pods/mailcore2-ios/lib -L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/usr/lib/swift -F/Users/decentral/Documents/GitHub/ALT/App/ios/build/Build/Products/Debug-iphonesimulator -F/Users/decentral/Documents/GitHub/ALT/App/ios/Pods/FirebaseAnalytics/Frameworks -F/Users/decentral/Documents/GitHub/ALT/App/ios/Pods/GoogleAppMeasurement/Frameworks -F/Users/decentral/Documents/GitHub/ALT/App/ios/Pods/GoogleSignIn/Frameworks -F/Users/decentral/Documents/GitHub/ALT/App/ios/Pods/OpenSSL-Universal/Frameworks -F/Users/decentral/Documents/GitHub/ALT/App/ios/build/Build/Products/Debug-iphonesimulator/XCFrameworkIntermediates/FirebaseAnalytics/Base -F/Users/decentral/Documents/GitHub/ALT/App/ios/build/Build/Products/Debug-iphonesimulator/XCFrameworkIntermediates/GoogleAppMeasurement/AdIdSupport -F/Users/decentral/Documents/GitHub/ALT/App/ios/build/Build/Products/Debug-iphonesimulator/XCFrameworkIntermediates/OpenSSL-Universal -filelist /Users/decentral/Documents/GitHub/ALT/App/ios/build/Build/Intermediates.noindex/TLS.build/Debug-iphonesimulator/TLS.build/Objects-normal/arm64/TLS.LinkFileList -Xlinker -rpath -Xlinker /usr/lib/swift -Xlinker -rpath -Xlinker @executable_path/Frameworks -dead_strip -Xlinker -object_path_lto -Xlinker /Users/decentral/Documents/GitHub/ALT/App/ios/build/Build/Intermediates.noindex/TLS.build/Debug-iphonesimulator/TLS.build/Objects-normal/arm64/TLS_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -ObjC -lAppAuth -lCocoaAsyncSocket -lDoubleConversion -lFBReactNativeSpec -lFirebaseAuth -lFirebaseCore -lFirebaseCoreDiagnostics -lFirebaseDatabase -lFirebaseFunctions -lFirebaseInstallations -lFirebaseInstanceID -lFirebaseMessaging -lFlipper -lFlipper-DoubleConversion -lFlipper-Folly -lFlipper-Glog -lFlipper-PeerTalk -lFlipper-RSocket -lFlipperKit -lFolly -lGTMAppAuth -lGTMSessionFetcher -lGoogleDataTransport -lGoogleUtilities -lMailCore-ios -lPromisesObjC -lRCTTypeSafety -lRNCCheckbox -lRNCClipboard -lRNCMaskedView -lRNCPicker -lRNDateTimePicker -lRNFBApp -lRNFBAuth -lRNFBDatabase -lRNFBFunctions -lRNFBMessaging -lRNFS -lRNGestureHandler -lRNGoogleSignin -lRNReanimated -lRNSVG -lRNScreens -lRNSmtpMailer -lRNVectorIcons -lReact-Core -lReact-CoreModules -lReact-RCTAnimation -lReact-RCTBlob -lReact-RCTImage -lReact-RCTLinking -lReact-RCTNetwork -lReact-RCTSettings -lReact-RCTText -lReact-RCTVibration -lReact-cxxreact -lReact-jsi -lReact-jsiexecutor -lReact-jsinspector -lReactCommon -lToast -lYoga -lYogaKit -lc++ -lglog -liconv -licucore -lleveldb-library -llibevent -lnanopb -lreact-native-safe-area-context -lreact-native-simple-toast -lresolv -lsqlite3 -lstdc++ -ltoolbar-android -lxml2 -lz -framework AudioToolbox -framework CFNetwork -framework CoreGraphics -framework CoreTelephony -framework CoreText -framework FirebaseAnalytics -framework Foundation -framework GoogleAppMeasurement -framework GoogleSignIn -framework JavaScriptCore -framework LocalAuthentication -framework MobileCoreServices -framework OpenSSL -framework QuartzCore -framework SafariServices -framework Security -framework StoreKit -framework SystemConfiguration -framework UIKit -weak_framework AuthenticationServices -weak_framework UserNotifications -ObjC -lc++ -Xlinker -sectcreate -Xlinker __TEXT -Xlinker __entitlements -Xlinker /Users/decentral/Documents/GitHub/ALT/App/ios/build/Build/Intermediates.noindex/TLS.build/Debug-iphonesimulator/TLS.build/TLS.app-Simulated.xcent -lPods-TLS -Xlinker -no_adhoc_codesign -Xlinker -dependency_info -Xlinker /Users/decentral/Documents/GitHub/ALT/App/ios/build/Build/Intermediates.noindex/TLS.build/Debug-iphonesimulator/TLS.build/Objects-normal/arm64/TLS_dependency_info.dat -o /Users/decentral/Documents/GitHub/ALT/App/ios/build/Build/Intermediates.noindex/TLS.build/Debug-iphonesimulator/TLS.build/Objects-normal/arm64/Binary/TLS
ld: in /Users/decentral/Documents/GitHub/ALT/App/ios/Pods/mailcore2-ios/lib/libMailCore-ios.a(MCONNTPFetchOverviewOperation.o), building for iOS Simulator, but linking in object file built for iOS, file '/Users/decentral/Documents/GitHub/ALT/App/ios/Pods/mailcore2-ios/lib/libMailCore-ios.a' for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
** BUILD FAILED **
**##The following build commands failed:
Ld /Users/decentral/Documents/GitHub/ALT/App/ios/build/Build/Intermediates.noindex/TLS.build/Debug-iphonesimulator/TLS.build/Objects-normal/arm64/Binary/TLS normal arm64 (in target 'TLS' from project 'TLS')
(1 failure)
detox[25938] WARN: [build.js]
Important: 'detox build' is a convenience shortcut for calling your own build command, as provided in the config file.
Failures in this build command are not the responsibility of Detox. You are responsible for maintaining this command.
detox[25938] ERROR: [cli.js] Command failed: xcodebuild -workspace ios/TLS.xcworkspace -scheme TLS -sdk iphonesimulator -derivedDataPath ios/build##**
Environment
jest-circus
|jest-jasmine2
(deprecated) |mocha
The text was updated successfully, but these errors were encountered: