I am new at mobile development and Xamarin, trying to publish my first iOS app but,
Apple rejected my app due to this crash log :
OS Version: iPhone OS 13.6.1 (17G80)
Release Type: User
Baseband Version: n/a
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Triggered by Thread: 0
Thread 0 name: tid_407 Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x0000000185d02df0 0x185cdc000 + 159216
1 libsystem_pthread.dylib 0x0000000185c22948 0x185c20000 + 10568
2 libsystem_c.dylib 0x0000000185bb1c24 0x185b3c000 + 482340
3 libsystem_c.dylib 0x0000000185bb1bb0 0x185b3c000 + 482224
4 SpeedRead.iOS 0x000000010422b470 undefined
5 SpeedRead.iOS 0x0000000104220b90 _xamarin_get_block_descriptor
6 SpeedRead.iOS 0x00000001040e6590 _sqlite3_rekey_v2
7 SpeedRead.iOS 0x000000010407b3f0 _sqlite3_rekey_v2
8 SpeedRead.iOS 0x0000000104079dd8 _sqlite3_rekey_v2
9 SpeedRead.iOS 0x000000010406fbb8 _sqlite3_rekey_v2
10 SpeedRead.iOS 0x00000001025b66ac _sqlite3_rekey_v2
11 SpeedRead.iOS 0x000000010232635c _sqlite3_rekey_v2
12 SpeedRead.iOS 0x000000010232db84 _sqlite3_rekey_v2
13 SpeedRead.iOS 0x0000000102681d9c _sqlite3_rekey_v2
14 SpeedRead.iOS 0x0000000102576380 _sqlite3_rekey_v2
15 SpeedRead.iOS 0x000000010408cff0 _sqlite3_rekey_v2
16 SpeedRead.iOS 0x00000001041486a4 _sqlite3_rekey_v2
17 SpeedRead.iOS 0x000000010414bf08 _sqlite3_rekey_v2
18 SpeedRead.iOS 0x0000000102193a14 _sqlite3_rekey_v2
19 SpeedRead.iOS 0x0000000102194744 _sqlite3_rekey_v2
20 Foundation 0x0000000186320f94 0x1861df000 + 1318804
21 CoreFoundation 0x0000000185e96d14 0x185dea000 + 707860
22 CoreFoundation 0x0000000185e96c68 0x185dea000 + 707688
23 CoreFoundation 0x0000000185e963c4 0x185dea000 + 705476
24 CoreFoundation 0x0000000185e911fc 0x185dea000 + 684540
25 CoreFoundation 0x0000000185e90bc8 0x185dea000 + 682952
26 GraphicsServices 0x00000001902725cc 0x19026f000 + 13772
27 UIKitCore 0x000000018a043744 0x1895d5000 + 10938180
28 SpeedRead.iOS 0x00000001026cc238 _sqlite3_rekey_v2
29 SpeedRead.iOS 0x0000000102635ef0 _sqlite3_rekey_v2
30 SpeedRead.iOS 0x0000000102635e74 _sqlite3_rekey_v2
31 SpeedRead.iOS 0x00000001021b9f64 _sqlite3_rekey_v2
32 SpeedRead.iOS 0x0000000102576380 _sqlite3_rekey_v2
33 SpeedRead.iOS 0x000000010408cff0 _sqlite3_rekey_v2
34 SpeedRead.iOS 0x00000001041486a4 _sqlite3_rekey_v2
35 SpeedRead.iOS 0x000000010414e8fc _sqlite3_rekey_v2
36 SpeedRead.iOS 0x000000010406b5a8 _sqlite3_rekey_v2
37 SpeedRead.iOS 0x0000000104228594 undefined
38 SpeedRead.iOS 0x00000001021b9ebc _sqlite3_rekey_v2
39 libdyld.dylib 0x0000000185d0d384 0x185d0c000 + 4996
I can't reproduce this crash at visual studio, i tried with all simulators but it works fine. Apple review says :
Buttons open pages which is reading database with entity framework and sqllite.
( here is soure code : https://github.com/fatihmgenc/SpeedRead , pages are AntrenmanPage & MetinEklemePage )
I use Ad-hoc for upload app to store-connect and my build settings :
What do you suggest me at this point ?
There's an issue with your SQLite database, as you can see it says that the _sqlite3_rekey_v2 is undefined. Most likely when you tested before submission, you forgot to delete the app from your device, along with the your cache and the temp files on the computer.
If you follow the buttons clicks to what they are saying, the bug is in the Antrenman page, and it's related to your SQLite database, so it could be in this line or in this line. So try to place a try-catch around those two lines and inside the catch, tell the code what it should do when the previous line was not called.
Related
I have a problem with the IOS part of my ReactNative App. The Android part works fine. When I create an development build (eas build --profile development --platform ios) there is no problem. But the preview and production builds crash directly after opening the App. The EAS build pipelines have no problems except for one message
fatal error: module 'React' in AST file '/Users/expo/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/1XDLP1ZNNJOAB/React-ISQBUSD1JGEA.pcm' (imported by AST file '/Users/expo/Library/Developer/Xcode/DerivedData/MY_APP_NAME-hkvdfgprzzhwypayqwweanuiqofc/Build/Intermediates.noindex/ArchiveIntermediates/MY_APP_NAME/PrecompiledHeaders/MY_APP_NAME-Bridging-Header-swift_3BATV8FO0GBUP-clang_1XDLP1ZNNJOAB.pch') is not defined in any loaded module map file; maybe you need to load '/Users/expo/workingdir/build/ios/Pods/Headers/Public/React-Core/React/React-Core.modulemap'?
I’m not sure if the this is related to my problem because it doesn’t lead to a build failure and the dev Build has the same error message but doesn’t crash.
The App is already published to TestFlight. Therefore, I have the crash reports from the device.
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Triggered by Thread: 13
…
Thread 13 name:
Thread 13 Crashed:
0 libsystem_kernel.dylib 0x00000001e5b5a200 __pthread_kill + 8
1 libsystem_pthread.dylib 0x00000001f5d971ac pthread_kill + 268 (pthread.c:1670)
2 libsystem_c.dylib 0x00000001b0951ca0 abort + 180 (abort.c:118)
3 libsystem_c.dylib 0x00000001b09a8890 __assert_rtn + 272 (assert.c:96)
4 MY_APP_NAME 0x000000010487f8d4 facebook::jsc::JSCRuntime::~JSCRuntime() + 136 (JSCRuntime.cpp:393)
5 MY_APP_NAME 0x000000010487f97c ~JSCRuntime + 4 (JSCRuntime.cpp:383)
6 MY_APP_NAME 0x000000010487f97c facebook::jsc::JSCRuntime::~JSCRuntime() + 12 (JSCRuntime.cpp:383)
7 MY_APP_NAME 0x00000001046d88f0 __release_shared + 40 (shared_ptr.h:177)
8 MY_APP_NAME 0x00000001046d88f0 __release_shared + 40 (shared_ptr.h:219)
9 MY_APP_NAME 0x00000001046d88f0 std::__1::shared_ptrfacebook::react::CallInvoker::~shared_ptr() + 64 (shared_ptr.h:959)
10 MY_APP_NAME 0x000000010488cea4 ~shared_ptr + 4 (shared_ptr.h:957)
11 MY_APP_NAME 0x000000010488cea4 facebook::react::JSIExecutor::~JSIExecutor() + 268 (JSIExecutor.h:71)
12 MY_APP_NAME 0x000000010488cd90 ~JSIExecutor + 4 (JSIExecutor.h:71)
13 MY_APP_NAME 0x000000010488cd90 facebook::react::JSIExecutor::~JSIExecutor() + 12 (JSIExecutor.h:71)
14 MY_APP_NAME 0x00000001047c9d64 operator() + 20 (function.h:505)
15 MY_APP_NAME 0x00000001047c9d64 operator() + 20 (function.h:1182)
16 MY_APP_NAME 0x00000001047c9d64 facebook::react::tryAndReturnError(std::__1::function<void ()> const&) + 32 (RCTCxxUtils.mm:74)
17 MY_APP_NAME 0x00000001047d61ec facebook::react::RCTMessageThread::tryFunc(std::__1::function<void ()> const&) + 24 (RCTMessageThread.mm:69)
18 MY_APP_NAME 0x00000001047d694c operator() + 20 (function.h:505)
19 MY_APP_NAME 0x00000001047d694c operator() + 20 (function.h:1182)
20 MY_APP_NAME 0x00000001047d694c operator() + 24 (RCTMessageThread.mm:61)
21 MY_APP_NAME 0x00000001047d694c __invoke<(lambda at /Users/expo/workingdir/build/node_modules/react-native/React/CxxBridge/RCTMessageThread.mm:60:12) &> + 24 (type_traits:3918)
22 MY_APP_NAME 0x00000001047d694c __call<(lambda at /Users/expo/workingdir/build/node_modules/react-native/React/CxxBridge/RCTMessageThread.mm:60:12) &> + 24 (invoke.h:61)
23 MY_APP_NAME 0x00000001047d694c operator() + 24 (function.h:178)
24 MY_APP_NAME 0x00000001047d694c std::__1::__function::__func<facebook::react::RCTMessageThread::runSync(std::__1::function<void ()>)::$_0, std::__1::allocator<facebook::react::RCTMessageThread::runSync(std::__1::function<void ()>… + 40 (function.h:352)
25 MY_APP_NAME 0x00000001047d5fa0 operator() + 20 (function.h:505)
26 MY_APP_NAME 0x00000001047d5fa0 operator() + 20 (function.h:1182)
27 MY_APP_NAME 0x00000001047d5fa0 invocation function for block in facebook::react::RCTMessageThread::runAsync(std::__1::function<void ()>) + 44 (RCTMessageThread.mm:45)
28 CoreFoundation 0x00000001a94ab924 CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK + 28 (CFRunLoop.c:1822)
29 CoreFoundation 0x00000001a95140ac __CFRunLoopDoBlocks + 368 (CFRunLoop.c:1864)
30 CoreFoundation 0x00000001a94e4508 __CFRunLoopRun + 2452 (CFRunLoop.c:3218)
31 CoreFoundation 0x00000001a94e91e4 CFRunLoopRunSpecific + 612 (CFRunLoop.c:3390)
32 MY_APP_NAME 0x00000001047bf398 +[RCTCxxBridge runRunLoop] + 264 (RCTCxxBridge.mm:378)
33 Foundation 0x00000001a3912ce8 NSThread__start + 716 (NSThread.m:968)
34 libsystem_pthread.dylib 0x00000001f5d916cc _pthread_start + 148 (pthread.c:893)
35 libsystem_pthread.dylib 0x00000001f5d90ba4 thread_start + 8
…
Expo: 45
Workflow: bare
eas-cli: 2.5.1
During search I tried to replace a lot of code in the AppDelegate.mm I found for this problem. Also from a freshly created and ejected Expo 45 example project.
When replacing almost the entire code from the App.tsx with a simple Text it works.
Furthermore, expo run:ios and npx expo start --no-dev --minify have also no problems.
I hope some of you have an idea how to solve this. I’m stuck on this Issue for some time now. If you need additional information, ask in the comments.
The problem was solved by enabling hermes in the Podfile with :hermes_enabled => true
Xcode crashes when opening xcworkspace which has more than 150 targets.
Following solutions have been tried:
Writing main thread command on terminal
Deleting derived data
Deleting xcuserdata inside the xcworkspace content
Restarting mac multiple times
deleted whole xcode folder from ~Library/ folder
Deleted cache
Below is the terminal logs when opening xcode which end up in abort.
Process: Xcode [6005]
Path: /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier: com.apple.dt.Xcode
Version: 13.1 (19466)
Build Info: IDEFrameworks-19466000000000000~20 (13A1030d)
App Item ID: 497799835
App External ID: 844664792
Code Type: X86-64 (Native)
Parent Process: launchd [1]
User ID: 501
Date/Time: 2021-10-28 12:51:35.1892 +0530
OS Version: macOS 12.0.1 (21A559)
Report Version: 12
Bridge OS Version: 6.0 (19P548)
Anonymous UUID: 3118C151-62B2-F809-F9A0-A23CD9A811EA
Sleep/Wake UUID: 7154F81D-4FC6-4A00-98DD-F582CF444EF5
Time Awake Since Boot: 11000 seconds
Time Since Wake: 5917 seconds
System Integrity Protection: enabled
Crashed Thread: 2 Dispatch queue: <IDEXCBuildSupport.IDEXCBuildServiceBuildOperation:0x7fa8fdca4d50:REfc>-builder-queue (QOS: UNSPECIFIED)
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Thread 2 Crashed:: Dispatch queue: <IDEXCBuildSupport.IDEXCBuildServiceBuildOperation:0x7fa8fdca4d50:REfc>-builder-queue (QOS: UNSPECIFIED)
0 libsystem_kernel.dylib 0x7ff806242112 __pthread_kill + 10
1 libsystem_pthread.dylib 0x7ff806278233 pthread_kill + 263
2 libsystem_c.dylib 0x7ff8061c4d10 abort + 123
3 IDEKit 0x10a56cb18 +[IDEAssertionHandler _handleAssertionWithLogString:assertionSignature:assertionReason:extraBacktrace:] + 1233
4 IDEKit 0x10a56df62 -[IDEAssertionHandler handleUncaughtException:] + 880
5 IDEKit 0x10a56e12d IDEHandleUncaughtException + 94
6 DVTFoundation 0x109d3b491 DVTSyncPerformBlock + 480
7 XCBuildSupport 0x14690dbf7 closure #1 in IDEXCBuildServiceBuildOperation.addOperations(to:) + 231
8 XCBuildSupport 0x14690558e thunk for #escaping #callee_guaranteed () -> () + 14
9 Foundation 0x7ff807187592 __NSBLOCKOPERATION_IS_CALLING_OUT_TO_A_BLOCK__ + 7
10 Foundation 0x7ff80718748a -[NSBlockOperation main] + 98
11 Foundation 0x7ff807187421 __NSOPERATION_IS_INVOKING_MAIN__ + 17
12 Foundation 0x7ff80718668f -[NSOperation start] + 785
13 Foundation 0x7ff807186365 __NSOPERATIONQUEUE_IS_STARTING_AN_OPERATION__ + 17
14 Foundation 0x7ff80718623a __NSOQSchedule_f + 182
15 libdispatch.dylib 0x7ff8060ced0d _dispatch_block_async_invoke2 + 83
16 libdispatch.dylib 0x7ff8060c1cc9 _dispatch_client_callout + 8
17 libdispatch.dylib 0x7ff8060c4746 _dispatch_continuation_pop + 460
18 libdispatch.dylib 0x7ff8060c3ded _dispatch_async_redirect_invoke + 716
19 libdispatch.dylib 0x7ff8060d13ba _dispatch_root_queue_drain + 343
20 libdispatch.dylib 0x7ff8060d1b5a _dispatch_worker_thread2 + 160
21 libsystem_pthread.dylib 0x7ff806275049 _pthread_wqthread + 256
22 libsystem_pthread.dylib 0x7ff80627401b start_wqthread + 15
VM Region Summary:
ReadOnly portion of Libraries: Total=1.9G resident=0K(0%) swapped_out_or_unallocated=1.9G(100%)
Writable regions: Total=2.5G written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=2.5G(100%)
VIRTUAL REGION
REGION TYPE SIZE COUNT (non-coalesced)
=========== ======= =======
Accelerate framework 512K 4
Activity Tracing 256K 1
CG image 1696K 71
ColorSync 244K 28
CoreAnimation 13.7M 193
CoreData 12K 1
CoreGraphics 12K 2
CoreImage 44K 11
CoreUI image data 2852K 25
Dispatch continuations 64.0M 1
Foundation 540K 2
Image IO 544K 24
JS JIT generated code 1.0G 3
Kernel Alloc Once 8K 1
MALLOC 1.4G 1366
MALLOC guard page 48K 12
MALLOC_LARGE (reserved) 4096K 4 reserved VM address space (unallocated)
Performance tool data 4K 1 not counted in TOTAL below
SQLite page cache 320K 5
STACK GUARD 56.1M 26
Stack 20.7M 26
VM_ALLOCATE 48K 9
WebKit Malloc 3176K 7
__CTF 759 1
__DATA 78.2M 1025
__DATA_CONST 49.4M 734
__DATA_DIRTY 2402K 268
__FONT_DATA 4K 1
__LINKEDIT 895.0M 297
__OBJC_RO 81.5M 1
__OBJC_RW 3120K 3
__TEXT 1.0G 974
__UNICODE 588K 1
dyld private memory 1024K 1
libnetwork 1152K 16
mapped file 199.2M 186
shared memory 784K 19
=========== ======= =======
TOTAL 4.8G 5349
TOTAL, minus reserved VM space 4.8G 5349
Note: I have been using Xcode7.x with MacOS Sierra since Beta 1 or 2. It's worked just fine. I haven't touched Xcode 8 on this machine.
Since beta 5, suddenly I can't do anything with Xcode 7. I start it up and open my workspace and as soon as I change the view to another file or project or assets or anything, it crashes with the following error:
Process: Xcode [869]
Path: /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier: com.apple.dt.Xcode
Version: 7.3.1 (10188.1)
Build Info: IDEFrameworks-10188001000000000~3
App Item ID: 497799835
App External ID: 817226719
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Xcode [869]
User ID: 501
Date/Time: 2016-08-11 11:21:13.167 -0700
OS Version: Mac OS X 10.12 (16A286a)
Report Version: 12
Anonymous UUID: BC13DBAB-4D04-3E83-CF4A-4F1FFB581BCE
Time Awake Since Boot: 250 seconds
System Integrity Protection: enabled
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000020
Exception Note: EXC_CORPSE_NOTIFY
VM Regions Near 0x20:
-->
__TEXT 000000010ce99000-000000010ce9d000 [ 16K] r-x/rwx SM=COW /Applications/Xcode.app/Contents/MacOS/Xcode
Application Specific Information:
ProductBuildVersion: 7D1014
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libobjc.A.dylib 0x00007fff8ce08a31 objc_retain + 33
1 com.apple.dt.DVTKit 0x000000010d73838a __38-[DVTSourceTextView setTextContainer:]_block_invoke + 28
2 com.apple.dt.DVTFoundation 0x000000010d0e5e88 __95-[NSObject(DVTObservingConvenience) _dvt_newObserverForKeyPath:options:owner:withHandlerBlock:]_block_invoke + 91
3 com.apple.dt.DVTFoundation 0x000000010d0e4d2e __73-[DVTObservingBlockToken observeValueForKeyPath:ofObject:change:context:]_block_invoke.195 + 83
4 com.apple.dt.DVTFoundation 0x000000010d00b911 DVTInvokeWithStrongOwnership + 75
5 com.apple.dt.DVTFoundation 0x000000010d0e48c6 -[DVTObservingBlockToken observeValueForKeyPath:ofObject:change:context:] + 336
6 com.apple.Foundation 0x00007fff7a0e9dbd NSKeyValueNotifyObserver + 350
7 com.apple.Foundation 0x00007fff7a0e9654 NSKeyValueDidChange + 486
8 com.apple.Foundation 0x00007fff7a2282d7 -[NSObject(NSKeyValueObservingPrivate) _changeValueForKeys:count:maybeOldValuesDict:usingBlock:] + 944
9 com.apple.Foundation 0x00007fff7a0ad3c9 -[NSObject(NSKeyValueObservingPrivate) _changeValueForKey:key:key:usingBlock:] + 60
10 com.apple.Foundation 0x00007fff7a115c3b _NSSetObjectValueAndNotify + 261
11 com.apple.CoreFoundation 0x00007fff786cfde7 -[NSArray makeObjectsPerformSelector:withObject:] + 279
12 com.apple.UIFoundation 0x00007fff8ac9282b -[NSLayoutManager setTextStorage:] + 912
13 com.apple.dt.DVTKit 0x000000010d6ad401 -[DVTFoldingLayoutManager setTextStorage:] + 154
14 com.apple.UIFoundation 0x00007fff8ace6515 -[NSTextStorage dealloc] + 117
15 com.apple.dt.DVTKit 0x000000010d64647e -[DVTTextStorage dealloc] + 911
16 com.apple.Foundation 0x00007fff7a11dcbd NSKVODeallocate + 94
17 com.apple.AppKit 0x00007fff76627281 -[NSTextView dealloc] + 813
18 com.apple.dt.DVTKit 0x000000010d803030 -[DVTCompletingTextView dealloc] + 120
19 com.apple.AppKit 0x00007fff76427a96 -[NSTextView release] + 464
20 libsystem_blocks.dylib 0x00007fff8d728952 _Block_release + 102
21 libsystem_blocks.dylib 0x00007fff8d728952 _Block_release + 102
22 libdispatch.dylib 0x00007fff8d6d9c6f _dispatch_source_handler_dispose + 23
23 libdispatch.dylib 0x00007fff8d6c9da3 _dispatch_source_cancel_callout + 90
24 libdispatch.dylib 0x00007fff8d6c0a6e _dispatch_source_invoke + 1512
25 libdispatch.dylib 0x00007fff8d6cba0f _dispatch_main_queue_callback_4CF + 505
26 com.apple.CoreFoundation 0x00007fff7870bd39 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
27 com.apple.CoreFoundation 0x00007fff786cd15d __CFRunLoopRun + 2205
28 com.apple.CoreFoundation 0x00007fff786cc664 CFRunLoopRunSpecific + 420
29 com.apple.HIToolbox 0x00007fff77c6ef7c RunCurrentEventLoopInMode + 240
30 com.apple.HIToolbox 0x00007fff77c6edb1 ReceiveNextEventCommon + 432
31 com.apple.HIToolbox 0x00007fff77c6ebe6 _BlockUntilNextEventMatchingListInModeWithFilter + 71
32 com.apple.AppKit 0x00007fff76365c41 _DPSNextEvent + 1093
33 com.apple.AppKit 0x00007fff76a75693 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1637
34 com.apple.dt.DVTKit 0x000000010d601439 -[DVTApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 396
35 com.apple.AppKit 0x00007fff7635a610 -[NSApplication run] + 926
36 com.apple.AppKit 0x00007fff763250e2 NSApplicationMain + 1237
37 com.apple.dt.Xcode 0x000000010ce9a39b 0x10ce99000 + 5019
38 libdyld.dylib 0x00007fff8d6f4255 start + 1
Anyone else come across this in beta 5?
From macOS Sierra beta 5 release notes:
Xcode
Xcode 7.3.1 is not compatible with macOS Sierra.
Workaround: Use Xcode 8.0 beta or later when running on macOS Sierra.
It should be possible to use swift 2.3 in xcode 8. From beta 6 notes:
For developers on macOS Sierra it is recommended that you move to Xcode 8. You can continue to develop with the Swift 2.x release with the included Swift 2.3 compiler until you are ready to migrate to Swift 3. Xcode 7.3.1 is not supported on macOS Sierra. (27224895)
With a stable Mac OS X Sierra (v10.12), Xcode 7.3.1 started to work on third launch. Everything seems to work fine, no problems with emulator or anything!
Don't lose hope if Xcode doesn't work on the first launch :)
I've been able to recreate this same particular issue (DVTSourceTextView setTextContainer) in Mac OS Sierra (non beta) for xcode 7.3.1. Oddly, I found it somehow attributed to my Cocoapods implementation. I was able to open up the project but not the workspace. I deleted my workspace and Pods directory then did a pod install to redo it.
The issue was fixed then. Lost a couple days of work researching, hoping this helps someone.
I am using Base localization with Xcode 7.0.1 in a swift ios project.
When trying to add a localized version of Info.plist, Xcode crashes reproducibly.
The crash report reads:
Process: Xcode [8668]
Path: /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier: com.apple.dt.Xcode
Version: 7.0.1 (8228)
Build Info: IDEFrameworks-8228000000000000~5
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Xcode [8668]
User ID: 501
Date/Time: 2016-02-09 20:19:34.068 +0100
OS Version: Mac OS X 10.11.3 (15D21)
Report Version: 11
Anonymous UUID: 3E9F29CA-3434-1E64-B82C-450C0F5950BA
Sleep/Wake UUID: E7AE7A3F-2138-4C7B-8C65-D550B9D39594
Time Awake Since Boot: 17000 seconds
Time Since Wake: 8500 seconds
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: 7A1001
UNCAUGHT EXCEPTION (NSInvalidArgumentException): *** -[NSPathStore2 stringByAppendingPathExtension:]: nil argument
UserInfo: (null)
Hints: None
Backtrace:
0 0x00007fff96b1baca __exceptionPreprocess (in CoreFoundation)
1 0x0000000100452734 DVTFailureHintExceptionPreprocessor (in DVTFoundation)
2 0x00007fff8ddf973c objc_exception_throw (in libobjc.A.dylib)
3 0x00007fff96b1b98d +[NSException raise:format:] (in CoreFoundation)
4 0x00007fff8b42ce6b -[NSPathStore2 stringByAppendingPathExtension:] (in Foundation)
5 0x0000000108cec86c -[Xcode3VariantGroup proposedFilePathForLocalization:fileType:] (in DevToolsCore)
6 0x000000011228ec8c -[Xcode3LocalizationCommands addLocalizedResourceWithDefaultLocale:variantGroup:inspectorLocale_locale:inspectorLocale_fileDataType:conversionFileDataType:fileDataType:allowsConversion:operationCompletionBlock:] (in Xcode3UI)
7 0x0000000112269c80 -[Xcode3LocalizationsInspector addResourceForInspectorLocale:] (in Xcode3UI)
8 0x000000011226b598 -[Xcode3LocalizationsInspector tableView:setObjectValue:forTableColumn:row:] (in Xcode3UI)
9 0x00007fff8f1cbd69 -[NSTableView _tryCellBasedMouseDown:atRow:column:withView:] (in AppKit)
10 0x00007fff8f1546c2 -[NSTableView mouseDown:] (in AppKit)
11 0x00007fff8f656d1d -[NSWindow _handleMouseDownEvent:isDelayedEvent:] (in AppKit)
12 0x00007fff8f657fad -[NSWindow _reallySendEvent:isDelayedEvent:] (in AppKit)
13 0x00007fff8efb0735 -[NSWindow sendEvent:] (in AppKit)
14 0x00000001018ae31e -[IDEWorkspaceWindow sendEvent:] (in IDEKit)
15 0x00007fff8eface49 -[NSApplication sendEvent:] (in AppKit)
16 0x0000000101664ae9 -[IDEApplication sendEvent:] (in IDEKit)
17 0x00007fff8eee003a -[NSApplication run] (in AppKit)
18 0x00007fff8ee62520 NSApplicationMain (in AppKit)
19 0x00007fff965c75ad start (in libdyld.dylib)
abort() called
Application Specific Signatures:
NSInvalidArgumentException
Application Specific Backtrace 1:
0 CoreFoundation 0x00007fff96b1bae2 __exceptionPreprocess + 178
1 DVTFoundation 0x0000000100452734 DVTFailureHintExceptionPreprocessor + 194
2 libobjc.A.dylib 0x00007fff8ddf973c objc_exception_throw + 48
3 CoreFoundation 0x00007fff96b1b98d +[NSException raise:format:] + 205
4 Foundation 0x00007fff8b42ce6b -[NSPathStore2 stringByAppendingPathExtension:] + 113
5 DevToolsCore 0x0000000108cec86c -[Xcode3VariantGroup proposedFilePathForLocalization:fileType:] + 470
6 Xcode3UI 0x000000011228ec8c -[Xcode3LocalizationCommands addLocalizedResourceWithDefaultLocale:variantGroup:inspectorLocale_locale:inspectorLocale_fileDataType:conversionFileDataType:fileDataType:allowsConversion:operationCompletionBlock:] + 621
7 Xcode3UI 0x0000000112269c80 -[Xcode3LocalizationsInspector addResourceForInspectorLocale:] + 681
8 Xcode3UI 0x000000011226b598 -[Xcode3LocalizationsInspector tableView:setObjectValue:forTableColumn:row:] + 1183
9 AppKit 0x00007fff8f1cbd69 -[NSTableView _tryCellBasedMouseDown:atRow:column:withView:] + 1992
10 AppKit 0x00007fff8f1546c2 -[NSTableView mouseDown:] + 4507
11 AppKit 0x00007fff8f656d1d -[NSWindow _handleMouseDownEvent:isDelayedEvent:] + 6322
12 AppKit 0x00007fff8f657fad -[NSWindow _reallySendEvent:isDelayedEvent:] + 212
13 AppKit 0x00007fff8efb0735 -[NSWindow sendEvent:] + 517
14 IDEKit 0x00000001018ae31e -[IDEWorkspaceWindow sendEvent:] + 156
15 AppKit 0x00007fff8eface49 -[NSApplication sendEvent:] + 2540
16 IDEKit 0x0000000101664ae9 -[IDEApplication sendEvent:] + 739
17 AppKit 0x00007fff8eee003a -[NSApplication run] + 796
18 AppKit 0x00007fff8ee62520 NSApplicationMain + 1176
19 libdyld.dylib 0x00007fff965c75ad start + 1
I am wondering if this might be a problem that the project configuration is inducing as I'm using cocoapods and some custom build script to fetch some resources at build time. Yet, I do not see any problems that would explain this.
Is there a way to fix this by ourselves or is it copypasta on the filesystem and hoping that Xcode will pick up on the changes?
Possibly caused by this is: after enabling base localization for Info.plist, the project refuses to build:
error: could not read data from '/Users/[redacted]/git/[redacted]-ios/[redacted]/Info.plist': The file “Info.plist” couldn’t be opened because there is no such file.
This does not surprise me, because xcode moved the file into Base.lproj.
I'm using Xcode 5.0.2 on os x mavericks 10.9.1 and i'm facing a strange problem as Xcode keeps loading for about 30 secs and then crashes when i opened it and do any mouse event i tried to unable the Source control as suggested in this post answer but with no mean, the problem report is as follows:
Process: Xcode [684]
Path: /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier: com.apple.dt.Xcode
Version: 5.0.2 (3335.32)
Build Info: IDEApplication-3335032000000000~4
Code Type: X86-64 (Native)
Parent Process: launchd [142]
Responsible: Xcode [684]
User ID: 502
Date/Time: 2014-01-19 16:18:32.647 +0200
OS Version: Mac OS X 10.9.1 (13B42)
Report Version: 11
Anonymous UUID: 04B4E5B4-74DF-8C99-FE04-776F426F8551
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: EXC_I386_GPFLT
Application Specific Information:
ProductBuildVersion: 5A3005
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libobjc.A.dylib 0x00007fff8d33f0e6 objc_release + 22
1 libobjc.A.dylib 0x00007fff8d33e65a (anonymous namespace)::AutoreleasePoolPage::pop(void*) + 502
2 com.apple.CoreFoundation 0x00007fff8a716d72 _CFAutoreleasePoolPop + 50
3 com.apple.Foundation 0x00007fff8da0c6ab -[__NSOperationInternal _start:] + 913
4 com.apple.Foundation 0x00007fff8da0c23b __NSOQSchedule_f + 64
5 libdispatch.dylib 0x00007fff94c772ad _dispatch_client_callout + 8
6 libdispatch.dylib 0x00007fff94c7ef03 _dispatch_main_queue_callback_4CF + 333
7 com.apple.CoreFoundation 0x00007fff8a793839 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
8 com.apple.CoreFoundation 0x00007fff8a74eb14 __CFRunLoopRun + 1636
9 com.apple.CoreFoundation 0x00007fff8a74e275 CFRunLoopRunSpecific + 309
10 com.apple.HIToolbox 0x00007fff9518cf0d RunCurrentEventLoopInMode + 226
11 com.apple.HIToolbox 0x00007fff9518ccb7 ReceiveNextEventCommon + 479
12 com.apple.HIToolbox 0x00007fff9518cabc _BlockUntilNextEventMatchingListInModeWithFilter + 65
13 com.apple.AppKit 0x00007fff8eda828e _DPSNextEvent + 1434
14 com.apple.AppKit 0x00007fff8eda78db -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 122
15 com.apple.AppKit 0x00007fff8ed9b9cc -[NSApplication run] + 553
16 com.apple.AppKit 0x00007fff8ed86803 NSApplicationMain + 940
17 libdyld.dylib 0x00007fff9345a5fd start + 1
I'm working on a Mac mini mid 2010 with processor 2.4 Ghz Intel Core 2 Duo, Memory 8 GB 1067 MHz DDR3, Does anyone know how to fix this and why this is happening? thanks in advance.
You might have an autosave problem where Xcode had trouble autosaving the project that keeps crashing. Go to the following location on your Mac:
/Users/YourUsername/Library/Autosave Information
Delete anything in there related to Xcode, such as files named Unsaved Xcode Document.xcworkspace. Restart Xcode and see if that fixes it.
https://discussions.apple.com/message/23991398#23991398