detox build failed: clang: error: linker command failed with exit code 1

Cing Sian Dal
Jan 18, 2021

Append the destination.

-destination 'platform=iOS Simulator,name=iPhone 11'

For full example,

{"testRunner": "jest","runnerConfig": "e2e/config.json","configurations": {"ios.sim.debug": {"type": "ios.simulator","binaryPath": "ios/build/Build/Products/Debug-iphonesimulator/ggbaby.app","build": "xcodebuild -workspace ios/ggbaby.xcworkspace -scheme ggbaby -configuration Debug -sdk iphonesimulator -derivedDataPath ios/build -destination 'platform=iOS Simulator,name=iPhone 11'","device": {"type": "iPhone 11"}},"ios.sim.release": {"type": "ios.simulator","binaryPath": "ios/build/Build/Products/Release-iphonesimulator/ggbaby.app","build": "xcodebuild -workspace ios/ggbaby.xcworkspace -scheme ggbaby -configuration Release -sdk iphonesimulator -derivedDataPath ios/build -destination 'platform=iOS Simulator,name=iPhone 11'","device": {"type": "iPhone 11"}}}}

--

--

Cing Sian Dal

Don’t follow me. I wrote junks here. Follow me on Twitter instead.