I have two machines:
macbook pro and mac mini
I installed and ran WDA at own iPhone without any problems from macbook. But from the mac mini, I couldn't do it.
Trusted certificate with good provision profile, app (WebDriverAgentRunner-Runner.app) was install, but crashed with this error:
May 3 21:25:40 iPhone ReportCrash(CrashReporterSupport)[489] <Notice>: cr_update: <private>
May 3 21:25:40 iPhone ReportCrash[489] <Notice>: Formulating report for corpse[488] <private>
May 3 21:25:40 iPhone ReportCrash(MobileCoreServices)[489] <Notice>: notify_register_check() failed with error 1000000
May 3 21:25:40 iPhone symptomsd(SymptomEvaluator)[123] <Notice>: 488 com.apple.test.WebDriverAgentRunner-Runner: Terminated (most elevated: Terminated)
May 3 21:25:40 iPhone symptomsd(SymptomEvaluator)[123] <Notice>: Entry, display name com.apple.test.WebDriverAgentRunner-Runner uuid (null) pid 488 isFront 0
May 3 21:25:40 iPhone symptomsd(SymptomEvaluator)[123] <Notice>: Duplicate removal of display name com.apple.test.WebDriverAgentRunner-Runner
May 3 21:25:40 iPhone ReportCrash(CrashReporterSupport)[489] <Info>: scanned 152 logs with 11 types and 10 unknowns (sentinel is <private>)
May 3 21:25:40 iPhone ReportCrash(CrashReporterSupport)[489] <Notice>: Report of type '109(<private>)' not saved because the limit of 25 logs has been reached
May 3 21:25:40 iPhone ReportCrash(CrashReporterSupport)[489] <Notice>: Notice: This report is abbreviated for syslog inclusion because it could not be saved to disk.
Symbolication may be possible by manually cleaning up and including the Binary Image section of a full report from this same device -- good luck!
May 3 21:25:40 iPhone ReportCrash(CrashReporterSupport)[489] <Notice>: Process: XCTRunner [488]
Path: /private/var/containers/Bundle/Application/63E4047A-DAD9-4B64-BE1F-AA4F1599C08D/WebDriverAgentRunner-Runner.app/XCTRunner
OS Version: iPhone OS 10.0 (14A346)
May 3 21:25:40 iPhone ReportCrash(CrashReporterSupport)[489] <Notice>: Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Termination Description: DYLD, Library not loaded: #rpath/XCTest.framework/XCTest | Referenced from: /var/containers/Bundle/Application/63E4047A-DAD9-4B64-BE1F-AA4F1599C08D/WebDriverAgentRunner-Runner.app/XCTRunner | Reason: no suitable image found. Did find: | /private/var/containers/Bundle/Application/63E4047A-DAD9-4B64-BE1F-AA4F1599C08D/WebDriverAgentRunner-Runner.app/Frameworks/XCTest.framework/XCTest: code signing blocked mmap() of '/private/var/containers/Bundle/Application/63E4047A-DAD9-4B64-BE1F-AA4F1599C08D/WebDriverAgentRunner-Runner.app/Frameworks/XCTest.framework/XCTest'
Triggered by Thread: 0
May 3 21:25:40 iPhone ReportCrash(CrashReporterSupport)[489] <Notice>: Thread 0 Crashed:
0 dyld 0x00000001000e5cd8 0x1000c0000 + 154840
1 dyld 0x00000001000e5668 0x1000c0000 + 153192
2 dyld 0x00000001000e56b0 0x1000c0000 + 153264
3 dyld 0x00000001000c4514 0x1000c0000 + 17684
4 dyld 0x00000001000c69a8 0x1000c0000 + 27048
5 dyld 0x00000001000c1044 0x1000c0000 + 4164
May 3 21:25:40 iPhone ReportCrash(CrashReporterSupport)[489] <Notice>: Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x0000000000000006 x1: 0x0000000000000001 x2: 0x000000016fd76170 x3: 0x00000000000000a5
x4: 0x000000016fd75d70 x5: 0x0000000000000000 x6: 0x0000000000000000 x7: 0x00000000000006d0
x8: 0x0000000000000020 x9: 0x0000000000000009 x10: 0x612e72656e6e7552 x11: 0x656d6172462f7070
x12: 0x582f736b726f7765 x13: 0x72662e7473655443 x14: 0x2f6b726f77656d61 x15: 0x0027747365544358
x16: 0x0000000000000209 x17: 0x00000000000bc000 x18: 0x0000000000000000 x19: 0x0000000000000000
x20: 0x000000016fd75d70 x21: 0x00000000000000a5 x22: 0x000000016fd76170 x23: 0x0000000000000001
x24: 0x0000000000000006 x25: 0x00000001000f1ab8 x26: 0x00000001000f3bb8 x27: 0x4df3b83aa4ff0050
x28: 0x00000001000f1000 fp: 0x000000016fd75d40 lr: 0x00000001000e5668
sp: 0x000000016fd75d00 pc: 0x00000001000e5cd8 cpsr: 0x00000000
When started WDA UITests:
2017-05-03 14:39:01.130 xcodebuild[2732:11442] Error Domain=com.apple.platform.iphoneos Code=-12 "Unable to launch com.apple.test.WebDriverAgentRunner-Runner" UserInfo={NSLocalizedDescription=Unable to launch com.apple.test.WebDriverAgentRunner-Runner, NSUnderlyingError=0x7fc37d959960 {Error Domain=DTXMessage Code=1 "(null)" UserInfo={DTXExceptionKey=The operation couldn’t be completed. (FBSOpenApplicationErrorDomain error 3.) : Failed to launch process with bundle identifier 'com.apple.test.WebDriverAgentRunner-Runner'}}}
2017-05-03 14:39:01.130 xcodebuild[2732:11442] Error Domain=IDETestOperationsObserverErrorDomain Code=5 "Early unexpected exit, operation never finished bootstrapping - no restart will be attempted" UserInfo={NSLocalizedDescription=Early unexpected exit, operation never finished bootstrapping - no restart will be attempted}
Testing failed: Test target WebDriverAgentRunner encountered an error (Early unexpected exit, operation never finished bootstrapping - no restart will be attempted)
** TEST FAILED **
My environment:
xcode 8.2.1
iOS 10.0
node 7.9.0
npm 4.2.0
carthage 0.22.0
libimobiledevice HEAD
Any ideas?
I fixed issue by re-downloading the WWDR (Apple Worldwide Developer Relations Certification Authority) and set its trust: 'use system default'.
Download from here: http://developer.apple.com/certificationauthority/AppleWWDRCA.cer
Related
I'm trying to put my mobile app (Xamarin IOS) on the App Store. I filled in all the required information, created a build, submitted it to App Store Connect for review. After some time, the application was reviewed and rejected. I was corrected the following error - "We were unable to review your app as it crashed on launch. We have attached detailed crash logs to help troubleshoot this issue." screenshot, and crash log. I symbolized it, but it did not help me at all. After symbolization, I still got incomprehensible text in the file. As a result, I did not manage to understand where exactly I have an error. I ask you to help me in this situation. Can you tell me how I can symbolize it differently, or how can I understand the already symbolized file. I just need to understand where the error is happening.
Thank you very much in advance for your time. I am grateful to you.
Symbolicated file:
Incident Identifier: 6947F5FE-B9DC-47A9-AA00-085F5B4911A0
CrashReporter Key: 2813e9a7d87ecf1fc7361aae3d6b31eafd209ab8
Hardware Model: iPad11,3
Process: DeliveryService.iOS [5953]
Path: /private/var/containers/Bundle/Application/C002FBD4-2ED7-48FF-9410-ED9AFB417D12/DeliveryService.iOS.app/DeliveryService.iOS
Identifier: com.delivery.ddl
Version: 1.0 (1.2)
AppStoreTools: 14C17
Code Type: ARM-64 (Native)
Role: Foreground
Parent Process: launchd [1]
Coalition: com.delivery.ddl [2297]
Date/Time: 2023-02-09 08:40:35.8743 -0800
Launch Time: 2023-02-09 08:40:14.9164 -0800
OS Version: iPhone OS 16.3 (20D47)
Release Type: User
Report Version: 104
Exception Type: EXC_BAD_ACCESS (SIGKILL)
Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000000000000
Exception Codes: 0x0000000000000001, 0x0000000000000000
VM Region Info: 0 is not in any region. Bytes before following region: 4309794816
REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL
UNUSED SPACE AT START
--->
__TEXT 100e24000-100e5c000 [ 224K] r-x/r-x SM=COW ...ryService.iOS
Termination Reason: FRONTBOARD 2343432205
<RBSTerminateContext| domain:10 code:0x8BADF00D explanation:process-launch watchdog transgression: application<com.delivery.ddl>:5953 exhausted real (wall clock) time allowance of 20.00 seconds
ProcessVisibility: Foreground
ProcessState: Running
WatchdogEvent: process-launch
WatchdogVisibility: Foreground
WatchdogCPUStatistics: (
"Elapsed total CPU time (seconds): 31.650 (user 31.650, system 0.000), 25% CPU",
"Elapsed application CPU time (seconds): 20.546, 17% CPU"
) reportType:CrashLog maxTerminationResistance:Interactive>
Triggered by Thread: 0
Kernel Triage:
VM - pmap_enter retried due to resource shortage
VM - pmap_enter retried due to resource shortage
Thread 0 name: tid_103 Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 ??? 0x0 ???
1 DeliveryService.iOS 0x1030a4224 0x100e24000 + 36176420
2 DeliveryService.iOS 0x1030ab600 xamarin_main (in DeliveryService.iOS) (monotouch-main.m:441) + 36206080
3 DeliveryService.iOS 0x100e5fdec main (in DeliveryService.iOS) (main.m:162) + 245228
4 dyld 0x1f2438960 start + 2528
Thread 1:
0 libsystem_pthread.dylib 0x2213d8b90 start_wqthread + 0
Thread 2 name: SGen worker
Thread 2:
0 libsystem_kernel.dylib 0x210d3767c __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x2213e006c _pthread_cond_wait + 1232
2 DeliveryService.iOS 0x103080fcc thread_func (in DeliveryService.iOS) (sgen-thread-pool.c:196) + 36032460
3 libsystem_pthread.dylib 0x2213d96cc _pthread_start + 148
4 libsystem_pthread.dylib 0x2213d8ba4 thread_start + 8
Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x000000000000000b x1: 0x000000016efdae10 x2: 0x000000000000000b x3: 0x0000000000000001
x4: 0x0000000000000000 x5: 0x0000000000000000 x6: 0x0000000000000000 x7: 0x0000000000000000
x8: 0x0000000000000000 x9: 0x03f4a93acf8d0017 x10: 0x0000000000000004 x11: 0x0000000000000000
x12: 0x000000000000000b x13: 0x0000000000000000 x14: 0x0000000000000000 x15: 0x000000016efdab10
x16: 0x00000002213d8e90 x17: 0x000000010123e654 x18: 0x0000000000000000 x19: 0x000000000000000b
x20: 0x000000016efdbac8 x21: 0x0000000103333000 x22: 0x0000000000000001 x23: 0x0000000000000000
x24: 0x0000000000000001 x25: 0x00000001030e6737 x26: 0x000000016efdbc93 x27: 0x0000000000000001
x28: 0x0000000282564300 fp: 0x000000016efdae30 lr: 0x00000001030a3884
sp: 0x000000016efdae00 pc: 0x0000000000000000 cpsr: 0x60000000
far: 0x0000000000000000 esr: 0x82000006 (Instruction Abort) Translation fault
Binary Images:
0x0 - 0xffffffffffffffff ??? unknown-arch <00000000000000000000000000000000> ???
0x100e24000 - 0x1031a3fff DeliveryService.iOS arm64 <93bf4745c5123ba28ccd9ada910f312b> /private/var/containers/Bundle/Application/C002FBD4-2ED7-48FF-9410-ED9AFB417D12/DeliveryService.iOS.app/DeliveryService.iOS
0x1f2423000 - 0x1f24a6093 dyld arm64e <4b042f280d1430eca1de3dbb10866ad7> /usr/lib/dyld
0x2213d8000 - 0x2213e3fff libsystem_pthread.dylib arm64e <45ac734e66493ee2a0963fd66441ab78> /usr/lib/system/libsystem_pthread.dylib
0x210d36000 - 0x210d6dfeb libsystem_kernel.dylib arm64e <c76e6bed463530c68f19fb829bbe1ae1> /usr/lib/system/libsystem_kernel.dylib
EOF
Here is the crash report:
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Termination Reason: DYLD 1 Library missing
Library not loaded: #rpath/double-conversion.framework/double-conversion
Referenced from: <FC807FC8-F29C-3926-8FD2-B52AB0C43805> /Users/USER/Library/Developer/CoreSimulator/Devices/9DC328E5-38CB-4BAE-AA0F-E2976C0765E4/data/Containers/Bundle/Application/EFC99D36-68DA-47EB-A147-602CC1AE1B59/tekvetek_RN.app/tekvetek_RN
Reason: tried: '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/swift/double-conversion.framework/double-conversion' (errno=2), '/usr/lib/swift/double-conversion.framework/double-conversion' (errno=2, no dyld cache), '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/swift/double-conversion.framework/double-conversion' (errno=2), '/usr/lib/swift/double-conversion.framework/double-conversion' (errno=2, no dyld cache), '/Users/omerkocer/Libra
(terminated at launch; ignore backtrace)
Triggered by Thread: 0
Thread 0 Crashed:
0 ??? 0x1062d6940 ???
1 <translation info unavailable> 0x1063636fc ???
2 dyld 0x206696a72 abort_with_payload_wrapper_internal + 80
3 dyld 0x206696aa4 abort_with_payload + 9
4 dyld_sim 0x10ea79593 abort_with_payload + 26
5 dyld_sim 0x10ea26f1e dyld4::halt(char const*) + 375
6 dyld_sim 0x10ea24f75 dyld4::prepare(dyld4::APIs&, dyld3::MachOAnalyzer const*) + 3928
7 dyld_sim 0x10ea251a0 _dyld_sim_prepare + 442
8 dyld 0x206640b78 dyld4::prepareSim(dyld4::RuntimeState&, char const*) + 1265
9 dyld 0x20663f70e dyld4::prepare(dyld4::APIs&, dyld3::MachOAnalyzer const*) + 244
10 dyld 0x20663f4e4 start + 388
Thread 1:: com.apple.rosetta.exceptionserver
0 ??? 0x7ff7ffeed944 ???
1 ??? 0x7ff7fff061f0 ???
Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x0000000000000006 rbx: 0x000000000000010b rcx: 0x0000000000000001 rdx: 0x000000030efbe6c0
rdi: 0x000000200ea28d03 rsi: 0x000000030efbe390 rbp: 0x0000000000000000 rsp: 0x000000030efbe2c0
r8: 0x000000030efbe2c0 r9: 0x0000000000000000 r10: 0x000000000000010b r11: 0xfefefefefefefeff
r12: 0x000000000000010b r13: 0x000000030efbe6c0 r14: 0x0000000000000001 r15: 0x0000000000000006
rip: <unavailable> rfl: 0x0000000000000283
tmp0: 0xffffffffffffffff tmp1: 0x00000001062d6914 tmp2: 0x0000000206696a72
Binary Images:
0x0 - 0xffffffffffffffff ??? (*) <00000000-0000-0000-0000-000000000000> ???
0x20663a000 - 0x2066a5fff dyld (*) <71febccd-d9dc-3599-9971-2b3407c588a8> /usr/lib/dyld
0x10ea23000 - 0x10ea82fff dyld_sim (*) <db2ea9eb-03d5-3b81-a6ce-26ec4dd81b07> /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/dyld_sim
Error Formulating Crash Report:
dyld_process_snapshot_get_shared_cache failed
EOF
As I understand it crashes because it can't find the #rpath/double-conversion.framework/double-conversion library.
I tried to linked binary with libraries:
libDoubleConversion.a
double-conversion.xcframework
But still same.
P.S.
The app is running without crashes with npx react-native run-ios or in xcode after build. However npx react-native run-ios --configuration=debug or --configuration=release is crashing the app on launch with EXC_CRASH (SIGABRT).
PROJECT > TARGET > BUILD PHASES > Link Binary With Libraries
I changed this libraries status
libDoubleConversion.a
double-conversion.xcframework
required from optional.
This worked for me.
please we need your help.
We are using Xcode 13.4.1 for compatibility with a library.
We have a published app on March 1st of this year with any problem.
On August 31 we have uploaded a new version for test purposes, it was distributed by TestFlight without any problem.
Our original IOS distribution certificate expires on 2022/12/17.
On September 15th, we have created a new IOS distribution certificate.
On October 6th, we have create an App Store Profile based on the new iOS Distribution profile.
Our problem is when we archive new versions of the App and distribute for testing purposes by TestFlight, when we run on different devices (without iOS 16 by the way), it crashes. In devices with iOS 16, seems work fine.
We have tested with the same archive but signed and exported for development, the App installed using this IPA works without any issue.
We also have tried deploy the same code of the App with a new archive IPA of August 31, it also crashes; this make us suspect the problem is at the signing/distribution phase.
We have the same problem at all crash reports give the next information:
Incident Identifier: ...
Hardware Model: iPhone13,4
Process: ... [10985]
Path: /private/var/containers/Bundle/Application/.../....app/...
Identifier: ...
Version: 2.0.23 (191)
AppStoreTools: 14A305
AppVariant: 1:iPhone13,4:15
Beta: YES
Code Type: ARM-64 (Native)
Role: Foreground
Parent Process: launchd [1]
Coalition: ... [1311]
Date/Time: 2022-09-27 15:20:07.0591 -0500
Launch Time: 2022-09-27 07:43:13.9385 -0500
OS Version: iPhone OS 15.6.1 (19G82)
Release Type: User
Baseband Version: 2.70.01
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Termination Reason: DYLD 4 Symbol missing
Symbol not found: (_swift_FORCE_LOAD$_swiftFoundation)
Referenced from: '/Volumes/VOLUME/*/....app/Frameworks/IBMMobileFoundationSwift.framework/IBMMobileFoundationSwift'
Expected in: '/System/Library/Frameworks/Foundation.framework/Foundation'
(terminated at launch; ignore backtrace)
Triggered by Thread: 0
Thread 0 Crashed:
0 dyld 0x0000000100a40b14 __abort_with_payload + 8
1 dyld 0x0000000100a466cc abort_with_payload_wrapper_internal + 104 (terminate_with_reason.c:102)
2 dyld 0x0000000100a46700 abort_with_payload + 16 (terminate_with_reason.c:124)
3 dyld 0x0000000100a16a00 dyld4::halt(char const*) + 580 (DyldProcessConfig.cpp:2102)
4 dyld 0x0000000100a13a20 dyld4::prepare(dyld4::APIs&, dyld3::MachOAnalyzer const*) + 3560 (dyldMain.cpp:0)
5 dyld 0x0000000100a11d84 start + 488 (dyldMain.cpp:864)
Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x0000000000000006 x1: 0x0000000000000004 x2: 0x000000016fd21868 x3: 0x0000000000000119
x4: 0x000000016fd21468 x5: 0x0000000000000000 x6: 0x0000000000000000 x7: 0x000000016fd20ee0
x8: 0x0000000000000020 x9: 0x0000000000000009 x10: 0x000000016fd2156b x11: 0x000000000000013d
x12: 0x0000000000000000 x13: 0x0000000000000031 x14: 0x0000000212138c02 x15: 0x000000016fd20a38
x16: 0x0000000000000209 x17: 0x0000000100a3b1c8 x18: 0x0000000000000000 x19: 0x0000000000000000
x20: 0x000000016fd21468 x21: 0x0000000000000119 x22: 0x000000016fd21868 x23: 0x0000000000000004
x24: 0x0000000000000006 x25: 0x000000016fd21468 x26: 0x0000000000000400 x27: 0x0000000000000400
x28: 0x0000000000000103 fp: 0x000000016fd21430 lr: 0x0000000100a466cc
sp: 0x000000016fd213f0 pc: 0x0000000100a40b14 cpsr: 0x1000
esr: 0x56000080 Address size fault
Binary Images:
0x1009f8000 - 0x100a4ffff dyld arm64e <66e1fb2668f8379ba052eb8b8291b5e1> /usr/lib/dyld
We have tried automatically and manual signing without any change. Thank you so much for your help.
Based on the answer at Apple Forums
https://developer.apple.com/forums/thread/715162?answerId=728753022#728753022
Extra configuration :
Build Settings / deployment / oAlways Embed Swift Libraries = Yes
Build Settings / deployment / strip swift symbol = No
Also when uploading :
Unselect 2 first options about BitCode and Strip Swift Symbols
The solution worked with xCode 13.4.1 and some earlier versions.
I am trying to migrate my Swift 3 code to Swift 4 to meet the requirement of Apple. I downloaded Xcode 9.1, renamed it to Xcode9.1.app, and moved it to the Applications.
I tried to open it as explained in the following link: How can I run Xcode 12.5.1 on Monterey?. But it quits.
The quitting message is:
-------------------------------------
Translated Report (Full Report Below)
-------------------------------------
Process: Xcode [14762]
Path: /Applications/Xcode9.0.1.app/Contents/MacOS/Xcode
Identifier: com.apple.dt.Xcode
Version: 9.0.1 (13249)
Build Info: IDEFrameworks-13249000000000000~2 (9A1004)
Code Type: X86-64 (Native)
Parent Process: launchd [1]
User ID: 501
Date/Time: 2022-01-10 11:36:20.3726 -0600
OS Version: macOS 12.0.1 (21A559)
Report Version: 12
Bridge OS Version: 6.0 (19P549)
Anonymous UUID: A485806D-0882-7796-CC9C-BB31F6F3E237
Sleep/Wake UUID: 22979CA9-B8DA-4613-99F5-34DE333FABB8
Time Awake Since Boot: 570000 seconds
Time Since Wake: 7415 seconds
System Integrity Protection: enabled
Crashed Thread: 0
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Termination Reason: Namespace DYLD, Code 1 Library missing
Library not loaded: #rpath/XCTest.framework/Versions/A/XCTest
Referenced from: /Applications/Xcode9.0.1.app/Contents/SharedFrameworks/DVTKit.framework/Versions/A/DVTKit
Reason: tried: '/Applications/Xcode9.0.1.app/Contents/SharedFrameworks/DVTKit.framework/Versions/A/../../../../Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks/XCTest.framework/Versions/A/XCTest' (no such file), '/Applications/Xcode9.0.1.app/Contents/SharedFrameworks/DVTKit.framework/Versions/A/../../../XCTest.framework/Versions/A/XCTest' (no such file), '/Applications/Xcode9.0.1.app/Contents/SharedFrameworks/DVTKit.framework/Versions/A/../../../../Applications/Instruments.app/Contents/Frameworks/XCTest.framework/Versions/A/XCTest' (no such file), '/Applications/Xcode9.0.1.app/Contents/SharedFrameworks/DVTKit.framework/Versions/A/../../../../Frameworks/XCTest.framework/Versions/A/XCTest' (no such file), '/Applications/Xcode9.0.1.app/Contents/MacOS/../Frameworks/XCTest.framework/Versions/A/XCTest' (no such file), '/Applicat
(terminated at launch; ignore backtrace)
Application Specific Information:
Library not loaded: #rpath/XCTest.framework/Versions/A/XCTest
Referenced from: /Applications/Xcode9.0.1.app/Contents/SharedFrameworks/DVTKit.framework/Versions/A/DVTKit
Reason: tried: '/Applications/Xcode9.0.1.app/Contents/SharedFrameworks/DVTKit.framework/Versions/A/../../../../Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks/XCTest.framework/Versions/A/XCTest' (no such file), '/Applications/Xcode9.0.1.app/Contents/SharedFrameworks/DVTKit.framework/Versions/A/../../../XCTest.framework/Versions/A/XCTest' (no such file), '/Applications/Xcode9.0.1.app/Contents/SharedFrameworks/DVTKit.framework/Versions/A/../../../../Applications/Instruments.app/Contents/Frameworks/XCTest.framework/Versions/A/XCTest' (no such file), '/Applications/Xcode9.0.1.app/Contents/SharedFrameworks/DVTKit.framework/Versions/A/../../../../Frameworks/XCTest.framework/Versions/A/XCTest' (no such file), '/Applications/Xcode9.0.1.app/Contents/MacOS/../Frameworks/XCTest.framework/Versions/A/XCTest' (no such file), '/Applicat
Thread 0 Crashed:
0 dyld 0x10c9c60ce __abort_with_payload + 10
1 dyld 0x10c9dc1cf abort_with_payload_wrapper_internal + 80
2 dyld 0x10c9dc201 abort_with_payload + 9
3 dyld 0x10c98a613 dyld4::halt(char const*) + 375
4 dyld 0x10c98655d dyld4::prepare(dyld4::APIs&, dyld3::MachOAnalyzer const*) + 3955
5 dyld 0x10c9854b4 start + 388
Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x0000000002000209 rbx: 0x0000000000000000 rcx: 0x00007ff7baf28a28 rdx: 0x00007ff7baf28e90
rdi: 0x0000000000000006 rsi: 0x0000000000000001 rbp: 0x00007ff7baf28a70 rsp: 0x00007ff7baf28a28
r8: 0x00007ff7baf28a90 r9: 0x0000000000000000 r10: 0x0000000000000096 r11: 0x0000000000000246
r12: 0x0000000000000096 r13: 0x00007ff7baf28e90 r14: 0x0000000000000001 r15: 0x0000000000000006
rip: 0x000000010c9c60ce rfl: 0x0000000000000246 cr2: 0x0000000104fe7000
Logical CPU: 0
Error Code: 0x02000209
Trap Number: 133
Binary Images:
0x10c980000 - 0x10c9ebfff dyld (*) <1a6ae033-9438-33c0-8077-988fd885250a> /usr/lib/dyld
External Modification Summary:
Calls made by other processes targeting this process:
task_for_pid: 0
thread_create: 0
thread_set_state: 0
Calls made by this process:
task_for_pid: 0
thread_create: 0
thread_set_state: 0
Calls made by all processes on this machine:
task_for_pid: 41
thread_create: 0
thread_set_state: 935
VM Region Summary:
ReadOnly portion of Libraries: Total=991.7M resident=0K(0%) swapped_out_or_unallocated=991.7M(100%)
Writable regions: Total=9636K written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=9636K(100%)
VIRTUAL REGION
REGION TYPE SIZE COUNT (non-coalesced)
=========== ======= =======
STACK GUARD 56.0M 1
Stack 8192K 1
VM_ALLOCATE 16K 3
__CTF 759 1
__DATA 31.2M 376
__DATA_CONST 12.0M 180
__DATA_DIRTY 534K 106
__FONT_DATA 4K 1
__LINKEDIT 661.8M 47
__OBJC_RO 81.5M 1
__OBJC_RW 3120K 1
__TEXT 329.9M 386
__UNICODE 588K 1
dyld private memory 1024K 1
=========== ======= =======
TOTAL 1.2G 1106
Problem
According to apple, macOS 12 requires you to use Xcode 13.
https://developer.apple.com/news/?id=ufox?.ci5
Solution
There is a way to install only the tool chain for Xcode 9, but not the
app itself. I'm not sure if Migration is possible through the command
line but it seems like the best solution.
https://github.com/mrpippy/XcodeNueve
ios app archived on any arm64, arm7 when installed on a real device crashing after launch. Working fine on Debug and release in simulators. looks like the bundle is not loading.
Steps To Reproduce
npx react-native init testprod --template react-native-template-typescript
open testprod.xcworkspace
build and run
archive
export the ipa
run it reald revice (or use browserstack)
https://drive.google.com/file/d/1le9LaEAD8nODxK0XN0st5UIzqq_dJ3i-/view?usp=sharing
this is the packaged app.
steps to get there;
npx react-native init testprod --template react-native-template-typescript
open testprod.xcworkspace
archive
export the ipa
run it reald revice (or use browserstack)
there was one bug for linking on the release chain . fixed by following here Xcode 12, building for iOS Simulator, but linking in object file built for iOS, for architecture arm64
app crashes with this
Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x000000000000000e x1: 0x0000000000000003 x2: 0x0000000000000028 x3: 0x0000000000000030
x4: 0x0000000000000603 x5: 0x0000000000000000 x6: 0x0000000000000000 x7: 0x0000000000000403
x8: 0x0000000000000000 x9: 0x0000000000000000 x10: 0xffffffffffffffff x11: 0x0000000000000000
x12: 0x000000028135f138 x13: 0x000000000000ffef x14: 0x0080000000000000 x15: 0x0000004000000001
x16: 0xffffffffffffffdc x17: 0x0000000000000001 x18: 0x0000000000000000 x19: 0x0000000281e53420
x20: 0x0000000281e533e0 x21: 0xffffffffffffffff x22: 0x0000000000000001 x23: 0x00000001d4693a71
x24: 0x0000000000000000 x25: 0x00000001d4256b0b x26: 0x000000002b870064 x27: 0x0000000000000010
x28: 0x0000000000000000 fp: 0x000000016cf24e10 lr: 0x000000018d02318c
sp: 0x000000016cf24e00 pc: 0x00000001b7dc6680 cpsr: 0x60000000
esr: 0x56000080 Address size fault
link to the issue https://github.com/facebook/react-native/issues/30500
When running on a real device most probably setting a valid development team, development/production certificates and provisioning profile should fix these types of problems.
You can create a valid development team in your Apple Project Account and set it in Xcode->YourProjectTarget->Signing Capabilities.
NOTE:
To debug why app crashes on a real device and not on simulator I would try to create an archive and validate it.
You should get more info about the problem at the archive or validation process.