Could not run XCode 9.1 on MacOS 12 - ios

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

Related

React native app crash on ios when running release or debug

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.

Archive/release crash on start with Maximum call stack size exceeded

My app starts to crash when I make an archive and send it to TestFlight. And when I open the app on a real device app waiting some time on the splash screen and then crash. But debug version works fine without any problem.
I exported the crash from my phone but I am not able to identify issue there:
Incident Identifier: 4D9DD2F1-E124-4AA3-BFEE-ACB83640F332
CrashReporter Key: 174a3861e99306b19bcfafa5e361aed4835d2a96
Hardware Model: iPhone7,1
Process: APPNAME [4880]
Path: /private/var/containers/Bundle/Application/AD750600-B6E2-4FAA-9A0B-2109E460BBC4/appname.app/APP
Identifier: APPNAMEBUNDLE
Version: 6 (1.3.2)
AppStoreTools: 12D4e
Code Type: ARM-64 (Native)
Role: Non UI
Parent Process: launchd [1]
Coalition: APPBANDLE [1036]
Date/Time: 2021-03-22 16:17:10.4435 +0100
Launch Time: 2021-03-22 16:16:50.3099 +0100
OS Version: iPhone OS 12.4.8 (16G201)
Baseband Version: 7.80.04
Report Version: 104
Exception Type: EXC_CRASH (SIGKILL)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Termination Reason: Namespace SPRINGBOARD, Code 0x8badf00d
Termination Description: SPRINGBOARD, scene-create watchdog
transgression: APPBANDLE exhausted real (wall clock) time allowance of 19.92 seconds | ProcessVisibility: Foreground | ProcessState: Running | WatchdogEvent: scene-create | WatchdogVisibility: Foreground | WatchdogCPUStatistics: ( | "Elapsed total CPU time (seconds): 5.260 (user 5.260, system 0.000), 13% CPU", | "Elapsed application CPU time (seconds): 2.258, 6% CPU" | )
Triggered by Thread: 0
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x0000000197d800f4 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x0000000197d7f5a0 mach_msg + 72
2 CoreFoundation 0x0000000198180914 __CFRunLoopServiceMachPort + 236
3 CoreFoundation 0x000000019817b824 __CFRunLoopRun + 1360
4 CoreFoundation 0x000000019817afb4 CFRunLoopRunSpecific + 436
...
After some playing, I was able to make a release build as debug version and I had the same issue and I extract error from the Xcode console:
APPNAME[4964:990367] [javascript] 'Failed to print error: ', 'Maximum call stack size exceeded.'
I am not able to identify what could be wrong...
UPDATE
The issue started when I install react-native-unimodules (I don't use expo just vanilla RN but I needed some lib from the expo) When I remove unimodules it is working fine

Xcode 8.3 crashes when I try to build project?

Send to Apple reports information for details
Process: Xcode [31577]
Path: /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier: com.apple.dt.Xcode
Version: 8.3 (12169)
Build Info: IDEFrameworks-12169000000000000~2
App Item ID: 497799835
App External ID: 821487965
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Xcode [31577]
User ID: 501
Date/Time: 2017-03-29 18:48:35.451 +0800
OS Version: Mac OS X 10.12.4 (16E195)
Report Version: 12
Anonymous UUID: 564BD29A-8710-A81C-C15D-B939D5755107
Time Awake Since Boot: 31000 seconds
System Integrity Protection: enabled
Crashed Thread: 7 Dispatch queue: shared-compile-command-queue :: NSOperation 0x7fd5420c3cf0 (QOS: DEFAULT)
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Application Specific Information:
ProductBuildVersion: 8E162
ASSERTION FAILURE in /Library/Caches/com.apple.xbs/Sources/IDEFrameworks/IDEFrameworks-12169/IDEFoundation/Diagnostic/IDEDiagnosticActivityLogMessage.m:298
Details: (fixItString) should not be nil.
Object: <IDEDiagnosticFixItItem: 0x7fd53f133fa0>
Method: initWithFixItString:replacementLocation:
Thread: <NSThread: 0x7fd53d8d8030>{number = 18, name = (null)}
Hints:  
Backtrace:
-[IDEAssertionHandler handleFailureInMethod:object:fileName:lineNumber:assertionSignature:messageFormat:arguments:] (in IDEKit)
_DVTAssertionHandler (in DVTFoundation)
_DVTAssertionFailureHandler (in DVTFoundation)

Xcode crashes when dragging the UI elements from storyboard

As title.
When I drag and drop the UI elements to my viewcontroller.swift then click "connect", it always crashes. I have cleaned the project and restart the computer but the problem is still there.
Strangely, the Xcode wouldn't crash in the new project.
Can anybody help me? Thanks
Crash film: https://www.youtube.com/watch?v=UP-ufW53slM
This is the crash report.
Process: Xcode [1692] Path:
/Applications/Xcode.app/Contents/MacOS/Xcode Identifier:
com.apple.dt.Xcode Version: 7.3 (10183.3) Build Info:
IDEFrameworks-10183003000000000~2 App Item ID: 497799835 App
External ID: 816750016 Code Type: X86-64 (Native)
Parent Process: ??? [1] Responsible: Xcode [1692]
User ID: 501
Date/Time: 2016-07-13 14:32:44.972 +0800 OS Version:
Mac OS X 10.11.5 (15F34) Report Version: 11 System Integrity
Protection: enabled
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_CRASH (SIGABRT) Exception Codes:
0x0000000000000000, 0x0000000000000000 Exception Note:
EXC_CORPSE_NOTIFY
Application Specific Information: ProductBuildVersion: 7D175 UNCAUGHT
EXCEPTION (NSInvalidArgumentException): +[IDESwiftSourceCodeGenerator
isTeardownCounterpart:]: unrecognized selector sent to class
0x113617ec0 UserInfo: (null) Hints: None
Logical CPU: 0 Error Code: 0x0100001f Trap Number: 133
VM Region Summary: ReadOnly portion of Libraries: Total=555.5M
resident=0K(0%) swapped_out_or_unallocated=555.5M(100%) Writable
regions: Total=1.2G written=0K(0%) resident=0K(0%) swapped_out=0K(0%)
unallocated=1.2G(100%)
Model: MacBookAir3,1, BootROM MBA31.0061.B07, 2 processors, Intel Core
2 Duo, 1.6 GHz, 4 GB, SMC 1.67f10 Graphics: NVIDIA GeForce 320M,
NVIDIA GeForce 320M, PCI, 256 MB Memory Module: BANK 0/DIMM0, 2 GB,
DDR3, 1067 MHz, 0x80AD, 0x484D54333235533642465238412D47372020
Please check multiple outlet connected to same object .
Xcode->StoryBoard->OutletCollection->Referencing outlet. Remove all and reconnect

vim caught deadly signal SEGV

While using vim with pathogen and rails.vim it sometimes crashes vim. This is my console log file for the crash. How can I prevent this from happening?
Process: vim [16620]
Path: /usr/bin/vim
Identifier: vim
Version: ??? (???)
Code Type: X86-64 (Native)
Parent Process: zsh [961]
Date/Time: 2011-08-31 08:20:25.727 +0800
OS Version: Mac OS X 10.6.7 (10J869)
Report Version: 6
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: 0x000000000000000d, 0x0000000000000000
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Thread 0 Crashed: Dispatch queue: com.apple.main-thread
0 libSystem.B.dylib 0x00007fff832af5d6 __kill + 10
1 vim 0x0000000100118943 0x100000000 + 1149251
2 libSystem.B.dylib 0x00007fff832c166a _sigtramp + 26
3 vim 0x00000001000249a2 0x100000000 + 149922
4 vim 0x00000001000249ef 0x100000000 + 149999
5 vim 0x00000001000249ef 0x100000000 + 149999
6 vim 0x0000000100024a1c 0x100000000 + 150044
7 vim 0x00000001000249ef 0x100000000 + 149999
8 vim 0x000000010002554c 0x100000000 + 152908
9 vim 0x0000000100118b75 0x100000000 + 1149813
10 vim 0x000000010010c138 0x100000000 + 1098040
11 vim 0x0000000100069900 0x100000000 + 432384
12 vim 0x000000010006cf45 0x100000000 + 446277
13 vim 0x000000010006d1a3 0x100000000 + 446883
14 vim 0x000000010006d5d6 0x100000000 + 447958
15 vim 0x00000001000a475c 0x100000000 + 673628
16 vim 0x0000000100075bb8 0x100000000 + 482232
17 vim 0x0000000100077e22 0x100000000 + 491042
18 vim 0x0000000100000978 0x100000000 + 2424
Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x0000000000000000 rbx: 0x0000000000000002 rcx: 0x00000001001cdbc8 rdx: 0x0000000000000000
rdi: 0x00000000000040ec rsi: 0x000000000000000b rbp: 0x00000001001cdbe0 rsp: 0x00000001001cdbc8
r8: 0x0000000000000000 r9: 0x00007fff7073fbc0 r10: 0x00007fff832b1552 r11: 0x0000000000000206
r12: 0x0000000000000029 r13: 0x000000000000007c r14: 0x000000000000007c r15: 0x0000000000000044
rip: 0x00007fff832af5d6 rfl: 0x0000000000000206 cr2: 0x0000000101185000
Binary Images:
0x100000000 - 0x100155fef +vim ??? (???) <F8247F1F-4D43-963A-D218-3D0E8ECFF899> /usr/bin/vim
0x7fff5fc00000 - 0x7fff5fc3bdef dyld 132.1 (???) <B536F2F1-9DF1-3B6C-1C2C-9075EA219A06> /usr/lib/dyld
0x7fff83260000 - 0x7fff83421fff libSystem.B.dylib 125.2.10 (compatibility 1.0.0) <9BAEB2F2-B485-6349-E1AB-637FE12EE770> /usr/lib/libSystem.B.dylib
0x7fff85845000 - 0x7fff85849ff7 libmathCommon.A.dylib 315.0.0 (compatibility 1.0.0) <95718673-FEEE-B6ED-B127-BCDBDB60D4E5> /usr/lib/system/libmathCommon.A.dylib
0x7fff85dcb000 - 0x7fff85e0afef libncurses.5.4.dylib 5.4.0 (compatibility 5.4.0) <E1F34D53-3D62-78C0-CAD8-8AD22C110A9E> /usr/lib/libncurses.5.4.dylib
0x7fff87ca5000 - 0x7fff87d9dff7 libiconv.2.dylib 7.0.0 (compatibility 7.0.0) <E0683DF0-8180-58A2-BA49-511111D4F36E> /usr/lib/libiconv.2.dylib
0x7fffffe00000 - 0x7fffffe01fff libSystem.B.dylib ??? (???) <9BAEB2F2-B485-6349-E1AB-637FE12EE770> /usr/lib/libSystem.B.dylib
Ask brew to compile macvim with debugging flag set, then run it under a debugger so that when it crashes you can ask the debugger to print the stack trace so that you can see which source code line is trying to access deallocated memory area which causes the SIGSEGV exception.
If you managed to get it that far then see if you can fix the error and submit a patch to the vim-dev list and feel good about it for a week :) good luck!
Vim sometime will crash. If your ruby code are not well format.
process(:hello => 'world', :foo => 'bar')
You should not write as:
process(:hello => 'world',
:foo => 'bar')
In my case vim stopped working after mavericks installation. I tracked it down to an issue with rvm, which was also on my system. 'vim -u NONE' ran fine. There were many suggestions about recompiling command-T, a vim plugin, but doing so didn't fix the problem for me. I ended using 'rvm implode' to remove rvm altogether. Then 'brew uninstall vim && brew install vim'. This fixed vim, and also fixed macvim, which was not opening windows unlessed launched from the console with 'mvim'. Therefore, there is some incompatibility with mavericks and rvm, which causes problems with vim.
After hours of researching following different threads turns out there may be a ton of reasons causing vim to crash and getting that error message(not surprising!). But in my particular case after running it in verbose mode I realized there were stuff in my ~/.vimrc file that vim crashed because of. So very easily after removing my ~/.vimrc everything went back to normal and no more crashing. Just make sure you keep a back-up of it before removing in case you have customized your vim.

Resources