All of a sudden today if I try to export our app for Enterprise distribution, I get this error below. So the question is - anyone know why I'm getting this, how to fix it, and so on? It only happens on newly created archives of our app. One major change is that I've enabled bitcode for our app and our frameworks that it uses.
"The data couldn’t be read because it isn’t in the correct format."
In the error log:
[BUG] Segmentation fault
ruby 2.0.0p648 (2015-12-16 revision 53162) [universal.x86_64-darwin16]
And in the crash logs I do see:
Process: ruby [99064]
Path: /usr/bin/ruby
Identifier: ruby
Version: 119.50.2
Code Type: X86-64 (Native)
Parent Process: Xcode [41202]
Responsible: ruby [99064]
User ID: 501
Date/Time: 2018-02-15 14:59:24.286 -0700
OS Version: Mac OS X 10.12.6 (16G1212)
Report Version: 12
Anonymous UUID: 4245B758-4197-BCB7-7D5D-830E86DAB467
Sleep/Wake UUID: FBC6D67F-A36E-4F7F-98A3-3EE37A5F360F
Time Awake Since Boot: 330000 seconds
Time Since Wake: 21000 seconds
System Integrity Protection: enabled
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_ACCESS (SIGABRT)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000438
Exception Note: EXC_CORPSE_NOTIFY
VM Regions Near 0x438:
-->
__TEXT 000000010f533000-000000010f535000 [ 8K] r-x/rwx SM=COW /usr/bin/ruby
Application Specific Information:
abort() called
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x00007fffd9fe5d42 __pthread_kill + 10
1 libsystem_pthread.dylib 0x00007fffda0d3457 pthread_kill + 90
2 libsystem_c.dylib 0x00007fffd9f4b420 abort + 129
3 libruby.2.0.0.dylib 0x000000010f569f70 rb_bug + 185
4 libsystem_platform.dylib 0x00007fffda0c6b3a _sigtramp + 26
5 ??? 000000000000000000 0 + 0
6 libruby.2.4.1.dylib 0x000000010faad19a st_init_table_with_size + 74 (st.c:572)
7 libruby.2.4.1.dylib 0x000000010f9b3f4e rb_enc_init + 110 (encoding.c:593)
8 libruby.2.4.1.dylib 0x000000010f9b5325 rb_usascii_encoding + 21 (encoding.c:1338)
9 libruby.2.4.1.dylib 0x000000010fad70c7 rb_intern + 23 (symbol.c:606)
10 libruby.2.4.1.dylib 0x000000010f988043 rb_define_module + 19 (class.c:773)
11 sqlite3_native.bundle 0x000000010f953e72 Init_sqlite3_native + 18 (sqlite3.c:129)
12 libruby.2.0.0.dylib 0x000000010f540651 dln_load + 213
13 libruby.2.0.0.dylib 0x000000010f654695 rb_vm_call_cfunc + 474
14 libruby.2.0.0.dylib 0x000000010f571e7f rb_require_safe + 1775
15 libruby.2.0.0.dylib 0x000000010f657ad6 0x10f53f000 + 1149654
16 libruby.2.0.0.dylib 0x000000010f649ae1 0x10f53f000 + 1092321
17 libruby.2.0.0.dylib 0x000000010f6537a1 0x10f53f000 + 1132449
18 libruby.2.0.0.dylib 0x000000010f65370c rb_iseq_eval + 372
19 libruby.2.0.0.dylib 0x000000010f571660 0x10f53f000 + 206432
20 libruby.2.0.0.dylib 0x000000010f571de9 rb_require_safe + 1625
21 libruby.2.0.0.dylib 0x000000010f657ad6 0x10f53f000 + 1149654
22 libruby.2.0.0.dylib 0x000000010f6573c3 0x10f53f000 + 1147843
23 libruby.2.0.0.dylib 0x000000010f649ae1 0x10f53f000 + 1092321
24 libruby.2.0.0.dylib 0x000000010f6537a1 0x10f53f000 + 1132449
25 libruby.2.0.0.dylib 0x000000010f6542fa rb_iseq_eval_main + 138
26 libruby.2.0.0.dylib 0x000000010f56e53d 0x10f53f000 + 193853
27 libruby.2.0.0.dylib 0x000000010f56e472 ruby_run_node + 54
28 ruby 0x000000010f5344fe main + 91
29 libdyld.dylib 0x00007fffd9eb7235 start + 1