expo eas -p ios fails during fastlane - react-native
When building with the command eas build -p ios, I get an error from my fastlane. I provided some of the fastlane information below. I highlighted the errors. The error I have at the very bottom I have seen before, but normally I fix it by using xcode to clean the build. I am unsure how to solve or even debug these errors without xcode.
EDIT: I did update my xcode command line tools. I also tried eas build -p ios --clear-cache. I am not sure how to go about debugging this.
EDIT 2: I was able to get the app to build, but it crashes amongst launch so I am assuming these errors still need to be fixed
If there is any other information I can provide, please let me know.
Here are the Xcode logs from the eas build: https://easyupload.io/m7bj1a
Resolving Swift Package Manager dependencies...
$ xcodebuild -resolvePackageDependencies -workspace ./appname.xcworkspace -scheme appname -configuration Release
▸ 2023-01-19 23:43:13.333 xcodebuild[4123:11533] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionSentinelHostApplications for extension Xcode.DebuggerFoundation.AppExtensionHosts.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
▸ 2023-01-19 23:43:13.334 xcodebuild[4123:11533] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionPointIdentifierToBundleIdentifier for extension Xcode.DebuggerFoundation.AppExtensionToBundleIdentifierMap.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
▸ 2023-01-19 23:43:13.391 xcodebuild[4123:11533] XType: failed to connect - Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.fonts was invalidated: failed at lookup with error 3 - No such process." UserInfo={NSDebugDescription=The connection to service named com.apple.fonts was invalidated: failed at lookup with error 3 - No such process.}
▸ 2023-01-19 23:43:13.391 xcodebuild[4123:11533] Font server protocol version mismatch (expected:5 got:0), falling back to local fonts
▸ 2023-01-19 23:43:13.391 xcodebuild[4123:11533] XType: unable to make a connection to the font daemon!
▸ 2023-01-19 23:43:13.391 xcodebuild[4123:11533] XType: XTFontStaticRegistry is enabled as fontd is not available.
▸ Command line invocation:
▸ /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -resolvePackageDependencies -workspace ./appname.xcworkspace -scheme appname -configuration Release
▸ User defaults from command line:
▸ IDEPackageSupportUseBuiltinSCM = YES
▸ --- xcodebuild: WARNING: Using the first of multiple matching destinations:
▸ { platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device }
▸ { platform:iOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-iphonesimulator:placeholder, name:Any iOS Simulator Device }
▸ { platform:iOS Simulator, id:F6898BCF-1F9B-4017-8C00-C42FB52DC78B, OS:15.5, name:iPad (9th generation) }
▸ { platform:iOS Simulator, id:8A99E458-9DF5-45FD-90B9-AE3E8D45FA33, OS:15.5, name:iPad Air (5th generation) }
▸ { platform:iOS Simulator, id:A9D00E67-59F6-498B-9487-E6CB0CFACD0C, OS:15.5, name:iPad Pro (9.7-inch) }
▸ { platform:iOS Simulator, id:DB619EE2-A7AB-4B01-8E7F-C3FD0489483E, OS:15.5, name:iPad Pro (11-inch) (3rd generation) }
▸ { platform:iOS Simulator, id:F86ECD5C-8048-4456-A2EE-A5092F5099F4, OS:15.5, name:iPad Pro (12.9-inch) (5th generation) }
▸ { platform:iOS Simulator, id:D38333AD-1820-41A9-9179-7BA12C6A00F9, OS:15.5, name:iPad mini (6th generation) }
▸ { platform:iOS Simulator, id:B575F055-31BB-4681-A541-93C73D3E05F7, OS:15.5, name:iPhone 8 }
▸ { platform:iOS Simulator, id:E65EE165-322D-430E-8955-428C34DC9E07, OS:15.5, name:iPhone 8 Plus }
▸ { platform:iOS Simulator, id:EAFFB577-ED7C-4B60-A91D-20CF70EBFBA0, OS:15.5, name:iPhone 11 }
▸ { platform:iOS Simulator, id:F6667EA1-F6F7-4304-B9D2-495992F0BC20, OS:15.5, name:iPhone 11 Pro }
▸ { platform:iOS Simulator, id:F0CA4CF6-38BA-4D2E-AFBC-22EE1526754A, OS:15.5, name:iPhone 11 Pro Max }
▸ { platform:iOS Simulator, id:4A1C0E71-0C96-40AD-A725-C6A370AF1D93, OS:15.5, name:iPhone 12 }
▸ { platform:iOS Simulator, id:A5DACA53-368C-4AA9-B649-B1D379696C68, OS:15.5, name:iPhone 12 Pro }
▸ { platform:iOS Simulator, id:1C40B471-BD95-4AD2-8E02-A4487E25EF3B, OS:15.5, name:iPhone 12 Pro Max }
▸ { platform:iOS Simulator, id:4814B63C-8DE9-44CC-A80D-8D60D42C655A, OS:15.5, name:iPhone 12 mini }
▸ { platform:iOS Simulator, id:8E2EB5DD-C321-4695-B728-F6A27FAF7D67, OS:15.5, name:iPhone 13 }
▸ { platform:iOS Simulator, id:4E56612B-11ED-49F2-B5EF-6E4602B0FB79, OS:15.5, name:iPhone 13 Pro }
▸ { platform:iOS Simulator, id:E5FAE80A-C4BD-4BFE-A831-2F7049886894, OS:15.5, name:iPhone 13 Pro Max }
▸ { platform:iOS Simulator, id:E4D323B3-630D-4D28-A329-6870D721E3B2, OS:15.5, name:iPhone 13 mini }
▸ { platform:iOS Simulator, id:DB03CB85-009E-4017-8EBE-14EC01AE8FD2, OS:15.5, name:iPhone SE (3rd generation) }
▸ { platform:iOS Simulator, id:A147CC3C-E896-4D76-9012-878356117872, OS:15.5, name:iPod touch (7th generation) }
▸ resolved source packages:
$ xcodebuild -showBuildSettings -workspace ./appname.xcworkspace -scheme appname -configuration Release
❌ [stderr] 2023-01-19 23:43:17.278 xcodebuild[4132:11650] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionSentinelHostApplications for extension Xcode.DebuggerFoundation.AppExtensionHosts.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
❌ [stderr] 2023-01-19 23:43:17.278 xcodebuild[4132:11650] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionPointIdentifierToBundleIdentifier for extension Xcode.DebuggerFoundation.AppExtensionToBundleIdentifierMap.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
❌ [stderr] 2023-01-19 23:43:17.335 xcodebuild[4132:11650] XType: failed to connect - Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.fonts was invalidated: failed at lookup with error 3 - No such process." UserInfo={NSDebugDescription=The connection to service named com.apple.fonts was invalidated: failed at lookup with error 3 - No such process.}
❌ [stderr] 2023-01-19 23:43:17.335 xcodebuild[4132:11650] Font server protocol version mismatch (expected:5 got:0), falling back to local fonts
❌ [stderr] 2023-01-19 23:43:17.335 xcodebuild[4132:11650] XType: unable to make a connection to the font daemon!
❌ [stderr] 2023-01-19 23:43:17.335 xcodebuild[4132:11650] XType: XTFontStaticRegistry is enabled as fontd is not available.
❌ [stderr] --- xcodebuild: WARNING: Using the first of multiple matching destinations:
❌ [stderr] { platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device }
❌ [stderr] { platform:iOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-iphonesimulator:placeholder, name:Any iOS Simulator Device }
❌ [stderr] { platform:iOS Simulator, id:F6898BCF-1F9B-4017-8C00-C42FB52DC78B, OS:15.5, name:iPad (9th generation) }
❌ [stderr] { platform:iOS Simulator, id:8A99E458-9DF5-45FD-90B9-AE3E8D45FA33, OS:15.5, name:iPad Air (5th generation) }
❌ [stderr] { platform:iOS Simulator, id:A9D00E67-59F6-498B-9487-E6CB0CFACD0C, OS:15.5, name:iPad Pro (9.7-inch) }
❌ [stderr] { platform:iOS Simulator, id:DB619EE2-A7AB-4B01-8E7F-C3FD0489483E, OS:15.5, name:iPad Pro (11-inch) (3rd generation) }
❌ [stderr] { platform:iOS Simulator, id:F86ECD5C-8048-4456-A2EE-A5092F5099F4, OS:15.5, name:iPad Pro (12.9-inch) (5th generation) }
❌ [stderr] { platform:iOS Simulator, id:D38333AD-1820-41A9-9179-7BA12C6A00F9, OS:15.5, name:iPad mini (6th generation) }
❌ [stderr] { platform:iOS Simulator, id:B575F055-31BB-4681-A541-93C73D3E05F7, OS:15.5, name:iPhone 8 }
❌ [stderr] { platform:iOS Simulator, id:E65EE165-322D-430E-8955-428C34DC9E07, OS:15.5, name:iPhone 8 Plus }
❌ [stderr] { platform:iOS Simulator, id:EAFFB577-ED7C-4B60-A91D-20CF70EBFBA0, OS:15.5, name:iPhone 11 }
❌ [stderr] { platform:iOS Simulator, id:F6667EA1-F6F7-4304-B9D2-495992F0BC20, OS:15.5, name:iPhone 11 Pro }
❌ [stderr] { platform:iOS Simulator, id:F0CA4CF6-38BA-4D2E-AFBC-22EE1526754A, OS:15.5, name:iPhone 11 Pro Max }
❌ [stderr] { platform:iOS Simulator, id:4A1C0E71-0C96-40AD-A725-C6A370AF1D93, OS:15.5, name:iPhone 12 }
❌ [stderr] { platform:iOS Simulator, id:A5DACA53-368C-4AA9-B649-B1D379696C68, OS:15.5, name:iPhone 12 Pro }
❌ [stderr] { platform:iOS Simulator, id:1C40B471-BD95-4AD2-8E02-A4487E25EF3B, OS:15.5, name:iPhone 12 Pro Max }
❌ [stderr] { platform:iOS Simulator, id:4814B63C-8DE9-44CC-A80D-8D60D42C655A, OS:15.5, name:iPhone 12 mini }
❌ [stderr] { platform:iOS Simulator, id:8E2EB5DD-C321-4695-B728-F6A27FAF7D67, OS:15.5, name:iPhone 13 }
❌ [stderr] { platform:iOS Simulator, id:4E56612B-11ED-49F2-B5EF-6E4602B0FB79, OS:15.5, name:iPhone 13 Pro }
❌ [stderr] { platform:iOS Simulator, id:E5FAE80A-C4BD-4BFE-A831-2F7049886894, OS:15.5, name:iPhone 13 Pro Max }
❌ [stderr] { platform:iOS Simulator, id:E4D323B3-630D-4D28-A329-6870D721E3B2, OS:15.5, name:iPhone 13 mini }
❌ [stderr] { platform:iOS Simulator, id:DB03CB85-009E-4017-8EBE-14EC01AE8FD2, OS:15.5, name:iPhone SE (3rd generation) }
❌ [stderr] { platform:iOS Simulator, id:A147CC3C-E896-4D76-9012-878356117872, OS:15.5, name:iPod touch (7th generation) }
Command timed out after 3 seconds on try 1 of 4, trying again with a 6 second timeout...
❌ [stderr] 2023-01-19 23:43:20.292 xcodebuild[4145:11723] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionSentinelHostApplications for extension Xcode.DebuggerFoundation.AppExtensionHosts.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
❌ [stderr] 2023-01-19 23:43:20.292 xcodebuild[4145:11723] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionPointIdentifierToBundleIdentifier for extension Xcode.DebuggerFoundation.AppExtensionToBundleIdentifierMap.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
❌ [stderr] 2023-01-19 23:43:20.344 xcodebuild[4145:11723] XType: failed to connect - Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.fonts was invalidated: failed at lookup with error 3 - No such process." UserInfo={NSDebugDescription=The connection to service named com.apple.fonts was invalidated: failed at lookup with error 3 - No such process.}
❌ [stderr] 2023-01-19 23:43:20.344 xcodebuild[4145:11723] Font server protocol version mismatch (expected:5 got:0), falling back to local fonts
❌ [stderr] 2023-01-19 23:43:20.344 xcodebuild[4145:11723] XType: unable to make a connection to the font daemon!
❌ [stderr] 2023-01-19 23:43:20.344 xcodebuild[4145:11723] XType: XTFontStaticRegistry is enabled as fontd is not available.
❌ [stderr] --- xcodebuild: WARNING: Using the first of multiple matching destinations:
❌ [stderr] { platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device }
❌ [stderr] { platform:iOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-iphonesimulator:placeholder, name:Any iOS Simulator Device }
❌ [stderr] { platform:iOS Simulator, id:F6898BCF-1F9B-4017-8C00-C42FB52DC78B, OS:15.5, name:iPad (9th generation) }
❌ [stderr] { platform:iOS Simulator, id:8A99E458-9DF5-45FD-90B9-AE3E8D45FA33, OS:15.5, name:iPad Air (5th generation) }
❌ [stderr] { platform:iOS Simulator, id:A9D00E67-59F6-498B-9487-E6CB0CFACD0C, OS:15.5, name:iPad Pro (9.7-inch) }
❌ [stderr] { platform:iOS Simulator, id:DB619EE2-A7AB-4B01-8E7F-C3FD0489483E, OS:15.5, name:iPad Pro (11-inch) (3rd generation) }
❌ [stderr] { platform:iOS Simulator, id:F86ECD5C-8048-4456-A2EE-A5092F5099F4, OS:15.5, name:iPad Pro (12.9-inch) (5th generation) }
❌ [stderr] { platform:iOS Simulator, id:D38333AD-1820-41A9-9179-7BA12C6A00F9, OS:15.5, name:iPad mini (6th generation) }
❌ [stderr] { platform:iOS Simulator, id:B575F055-31BB-4681-A541-93C73D3E05F7, OS:15.5, name:iPhone 8 }
❌ [stderr] { platform:iOS Simulator, id:E65EE165-322D-430E-8955-428C34DC9E07, OS:15.5, name:iPhone 8 Plus }
❌ [stderr] { platform:iOS Simulator, id:EAFFB577-ED7C-4B60-A91D-20CF70EBFBA0, OS:15.5, name:iPhone 11 }
❌ [stderr] { platform:iOS Simulator, id:F6667EA1-F6F7-4304-B9D2-495992F0BC20, OS:15.5, name:iPhone 11 Pro }
❌ [stderr] { platform:iOS Simulator, id:F0CA4CF6-38BA-4D2E-AFBC-22EE1526754A, OS:15.5, name:iPhone 11 Pro Max }
❌ [stderr] { platform:iOS Simulator, id:4A1C0E71-0C96-40AD-A725-C6A370AF1D93, OS:15.5, name:iPhone 12 }
❌ [stderr] { platform:iOS Simulator, id:A5DACA53-368C-4AA9-B649-B1D379696C68, OS:15.5, name:iPhone 12 Pro }
❌ [stderr] { platform:iOS Simulator, id:1C40B471-BD95-4AD2-8E02-A4487E25EF3B, OS:15.5, name:iPhone 12 Pro Max }
❌ [stderr] { platform:iOS Simulator, id:4814B63C-8DE9-44CC-A80D-8D60D42C655A, OS:15.5, name:iPhone 12 mini }
❌ [stderr] { platform:iOS Simulator, id:8E2EB5DD-C321-4695-B728-F6A27FAF7D67, OS:15.5, name:iPhone 13 }
❌ [stderr] { platform:iOS Simulator, id:4E56612B-11ED-49F2-B5EF-6E4602B0FB79, OS:15.5, name:iPhone 13 Pro }
❌ [stderr] { platform:iOS Simulator, id:E5FAE80A-C4BD-4BFE-A831-2F7049886894, OS:15.5, name:iPhone 13 Pro Max }
❌ [stderr] { platform:iOS Simulator, id:E4D323B3-630D-4D28-A329-6870D721E3B2, OS:15.5, name:iPhone 13 mini }
❌ [stderr] { platform:iOS Simulator, id:DB03CB85-009E-4017-8EBE-14EC01AE8FD2, OS:15.5, name:iPhone SE (3rd generation) }
❌ [stderr] { platform:iOS Simulator, id:A147CC3C-E896-4D76-9012-878356117872, OS:15.5, name:iPod touch (7th generation) }
Detected provisioning profile mapping: {:"io.appnameapp"=>"ff123525-d8d9-4029-a284-ab263bce69ba"}
...
❌ error: File /Users/expo/Library/Developer/Xcode/DerivedData/appname-gedwzmdsdqqlasgwhpmtmickdfvo/Build/Intermediates.noindex/ArchiveIntermediates/appname/BuildProductsPath/Release-iphoneos/appname.app/main.jsbundle does not exist. This must be a bug with
Scroll to the bottom of the build page. There should be an Xcode Logs section which you may not have noticed (as I didn't.)
If you examine those logs, you should be able to find the underlying JavaScript that's causing this issue.
For us, it was excluding a Babel plugin (which previously was not required somehow.) Adding it to our .babelrc.js fixed it.
Despite the error message saying it must be a bug with React Native - it's probably not.
Related
React Native CLI iOS build fails unless I specify UDID manually (error code 70)
On a brand new project generated with react-native init, this works as expected: react-native run-ios --udid='4720C15A-8AED-45E5-B3CC-58461F5B4413' But react-native run-ios without UDID param fails with: warn Multiple Podfiles were found: ios/Podfile,vendor/bundle/ruby/2.7.0/gems/cocoapods-core-1.11.3/lib/cocoapods-core/Podfile. Choosing ios/Podfile automatically. If you would like to select a different one, you can configure it via "project.ios.sourceDir". You can learn more about it here: https://github.com/react-native-community/cli/blob/master/docs/configuration.md info Found Xcode workspace "AwesomeProject.xcworkspace" info Found [redacted] info Building (using "xcodebuild -workspace AwesomeProject.xcworkspace -configuration Debug -scheme AwesomeProject -destination id=863BC019-F4A9-52FA-A489-94F23F2E4446") error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 70. To debug build logs further, consider building your app with Xcode.app, by opening AwesomeProject.xcworkspace. Command line invocation: /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -workspace AwesomeProject.xcworkspace -configuration Debug -scheme AwesomeProject -destination id=863BC019-F4A9-52FA-A489-94F23F2E4446 User defaults from command line: IDEPackageSupportUseBuiltinSCM = YES 2023-01-22 16:49:24.861 xcodebuild[29257:10638655] Writing error result bundle to /var/folders/hw/nxk409kd2r322j_4p504_fgr0000gn/T/ResultBundle_2023-22-01_16-49-0024.xcresult xcodebuild: error: Unable to find a destination matching the provided destination specifier: { id:863BC019-F4A9-52FA-A489-94F23F2E4446 } The requested device could not be found because no available devices matched the request. Available destinations for the "AwesomeProject" scheme: { platform:macOS, arch:arm64, variant:Designed for [iPad,iPhone], id:00006000-001A51E022E2801E } { platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device } { platform:iOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-iphonesimulator:placeholder, name:Any iOS Simulator Device } { platform:iOS Simulator, id:F4A58EA2-A0F8-4BD7-8FDB-57C8E7D0822C, OS:16.2, name:iPad (10th generation) } { platform:iOS Simulator, id:08E35727-BE07-48D1-A2DE-ED1A1E69CA28, OS:16.2, name:iPad Air (5th generation) } { platform:iOS Simulator, id:91D05BF6-12E3-4806-BA14-6DF72CB2C5BD, OS:16.2, name:iPad Pro (11-inch) (4th generation) } { platform:iOS Simulator, id:B1D01D46-AEF7-4DC2-B4FE-92A10E0FE6D2, OS:16.2, name:iPad Pro (12.9-inch) (6th generation) } { platform:iOS Simulator, id:28E59780-E621-4457-A218-504CF2DF9539, OS:16.2, name:iPad mini (6th generation) } { platform:iOS Simulator, id:19AB219B-78B1-404B-B9F3-FB954C0C93CA, OS:16.2, name:iPhone 14 } { platform:iOS Simulator, id:55A453E2-B60F-4AB4-859C-0A8BF8572AB8, OS:16.2, name:iPhone 14 Plus } { platform:iOS Simulator, id:1F841D64-D675-4D11-9592-FFF7F4AD066E, OS:16.2, name:iPhone 14 Pro } { platform:iOS Simulator, id:4720C15A-8AED-45E5-B3CC-58461F5B4413, OS:16.2, name:iPhone 14 Pro Max } { platform:iOS Simulator, id:781F0720-AA38-412D-B358-DA58E7E7A99C, OS:16.2, name:iPhone SE (3rd generation) } info Run CLI with --verbose flag for more details. Building & running via Xcode UI also works. react-native start is running in a separate terminal. Why is react native using that nonexistent destination ID by default, and how do I fix it? react 18.2.0 react-native 0.71.1 react-native CLI 10.1.3 Xcode 14.2 macOS Ventura 13.1 on M1 Pro
I encountered this on 0.71.2. It appears to be an open react-native bug since 0.71.1. Link to issue on Github: https://github.com/facebook/react-native/issues/35917
React Native E2E w/ Detox error: "Failed to run application on the device"
I have a starter app created with React Native CLI on a Mac, added Detox and am trying to run the sample tests. I get this error (newlines added for easier reading): $ ./node_modules/.bin/detox -c android test detox[37289] INFO: [test.js] configuration="android" reportSpecs=true readOnlyEmu=false useCustomLogger=true forceAdbInstall=false DETOX_START_TIMESTAMP=1591313397594 node_modules/.bin/jest --config e2e/config.json '--testNamePattern=^((?!:ios:).)*$' -- maxWorkers 1 android test detox[37290] INFO: [DetoxServer.js] server listening on localhost:62332... detox[37290] ERROR: [DetoxExportWrapper.js/DETOX_INIT_ERROR] DetoxRuntimeError: Failed to run application on the device HINT: Most likely, your tests have timed out and called detox.cleanup() while it was waiting for "ready" message (over WebSocket) from the instrumentation process. When it runs, the emulator starts but the app does not. The app runs fine separate from E2E tests, through React Native CLI. .detoxrc.json { "testRunner": "jest", "runnerConfig": "e2e/config.json", "configurations": { "android": { "type": "android.emulator", "binaryPath": "android/app/build/outputs/apk/debug/app-debug.apk", "build": "cd android; ./gradlew assembleDebug assembleAndroidTest -DtestBiuldType=debug; cd -", "device": { "avdName": "Pixel_3" } } } } Environment: Detox: 16.7.0 React Native: 0.62.2 Node: v12.17.0 Device: Pixel 3, x86, API 29, Android 10 OS: MacOS 10.15.4 Test-runner: Jest Android Studio: 3.6.3
My bad. I missed a few steps on the second page of getting started instructions specific to Android. https://github.com/wix/Detox/blob/master/docs/Introduction.Android.md
Unable to run test case using detox
I am facing the error below when running test case using detox. I had all dependencies installed as part of it. Can't find a simulator to match with " iPhone 6 ", run 'xcrun simctl list' to list your supported devices. configuration="ios.sim.debug" artifactsLocation="artifacts/ios.sim.debug.2019-01-31 12-14-41Z" node_modules/.bin/jest "e2e" --config=e2e/config.json --maxWorkers=1 '--testNamePattern=^((?!:android:).)*$' detox[5864] INFO: [DetoxServer.js] server listening on localhost:57598... detox[5864] ERROR: [index.js/DETOX_INIT_ERROR] Error: Can't find a simulator to match with " iPhone 6 ", run 'xcrun simctl list' to list your supported devices. It is advised to only state a device type, and not to state iOS version, e.g. "iPhone 7" at AppleSimUtils.findDevicesUDID (/Users/alok/Desktop/malliswari/accordion/node_modules/detox/src/devices/ios/AppleSimUtils.js:46:13) at process._tickCallback (internal/process/next_tick.js:68:7)
This is caused by setting the simulator in your detox config in your package.json to one that isn't on your system "detox": { "configurations": { "ios.sim.debug": { "binaryPath": "ios/build/Build/Products/Debug-iphonesimulator/myapp.app", "build": "RN_SRC_EXT=e2e.js xcodebuild -workspace ios/myapp.xcworkspace -scheme myapp -configuration Debug -sdk iphonesimulator -derivedDataPath ios/build", "type": "ios.simulator", "name": "iPhone 7" // <- this is where you define your simulator } }, You should run xcrun simctl list in your terminal to see which simulators are available. Then use one of the available ones in your detox configuration. Chances are you should be able to change it to "iPhone 7" or "iPhone 8"
Another possible solution is here https://github.com/wix/Detox/issues/1103 We need to upgrade AppleSimUtils. In case if you have issues in upgrading check out here
Why am I getting this error in react native?
I am new to react native. When I run react-native run-android I get this error. FAILURE: Build failed with an exception. * Where: Build file 'D:\Stay Hungry\app developement\Aarogya\node_modules\react-native-share\android\build.gradle' line: 53 * What went wrong: A problem occurred evaluating project ':react-native-share'. > Could not find method compileOnly() for arguments [com.facebook.react:react-native:+] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler. * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. BUILD FAILED Total time: 7 mins 24.686 secs Could not install the app on the device, read the error above for details. Make sure you have an Android emulator running or a device connected and have set up your Android development environment: https://facebook.github.io/react-native/docs/getting-started.html I traced the path to the error location and my build.gradle is below: buildscript { repositories { jcenter() maven { url 'https://maven.google.com/' name 'Google' } } dependencies { classpath 'com.android.tools.build:gradle:3.1.2' } } apply plugin: 'com.android.library' def safeExtGet(prop, fallback) { rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback } android { compileSdkVersion safeExtGet('compileSdkVersion', 27) buildToolsVersion safeExtGet('buildToolsVersion', '27.0.3') defaultConfig { minSdkVersion safeExtGet('minSdkVersion', 16) targetSdkVersion safeExtGet('targetSdkVersion', 27) versionCode 1 versionName "1.0.0" } lintOptions { abortOnError false warning 'InvalidPackage' } } repositories { mavenCentral() maven { url 'https://maven.google.com/' name 'Google' } maven { // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm url "$rootDir/../node_modules/react-native/android" } jcenter() } dependencies { compileOnly "com.facebook.react:react-native:${safeExtGet('reactNativeVersion', '+')}" implementation "com.android.support:appcompat-v7:${safeExtGet('supportLibVersion', '27.1.0')}" } I have no idea what is wrong here. I have not even started writing code in app.js yet. I am using a physical device to run the code with an adb device.
The error you are getting is from the library react-native-share. Did you follow the instructions to installing it right?
iOS React Native app freezes with RCTSRWebSocketErrorDomain Thread 14: EXC_BAD_ACCESS
I recently upgraded my app to React Native version 0.54.2 and since then, iOS freezes after a few minutes of non-usage. Before the upgrade, this never happened. The error stems from RCTWebSocket.xcodeproj > RCTSRWebSocket.m. Has anyone experienced a similar issue after upgrading? Development environment: Environment: OS: macOS Sierra 10.12.6 Node: 6.11.0 Yarn: Not Found npm: 5.2.0 Watchman: 4.9.0 Xcode: Xcode 9.2 Build version 9C40b Android Studio: 3.0 AI-171.4443003 Packages: (wanted => installed) react: ^16.3.0-alpha.2 => 16.3.0-alpha.2 react-native: ^0.54.2 => 0.54.2 Source of error: - (void)_failWithError:(NSError *)error; { dispatch_async(_workQueue, ^{ <==== [Thread 14: EXC_BAD_ACCESS (code=1, address=0x30) ] if (self.readyState != RCTSR_CLOSED) { self->_failed = YES; [self _performDelegateBlock:^{ if ([self.delegate respondsToSelector:#selector(webSocket:didFailWithError:)]) { [self.delegate webSocket:self didFailWithError:error]; } }]; self.readyState = RCTSR_CLOSED; self->_selfRetain = nil; RCTSRLog(#"Failing with error %#", error.localizedDescription); [self _disconnect]; } }); } I read somewhere that this crash will not occur in a production application but I do not want to try and find out if that's true or not..
I get an error related with WebSocket on compile time, to fix it check the "build phases" section of RCTWebSocket.xcodeproj and look inside the tab "Link binary with libraries", you should have libfishhook.a there, delete it and add it again