Xcode 9 crash during uploading app to App Store - xcode

In my project the Xcode 9 crashes during uploading to App Store (or exporting to disk, it does not matter). I have found that it may be caused by cocoapods or some kind of external frameworks bug, because on my other projects which do not use cocoapods this bug does not happen. However why I created post about it here on stackoverflow is the question if anybody has a temporary solution to solve this issue?
Unfortunately it is not known when it will be fixed by Apple or cocapods...so...every help would be welcomed.
I have already reported this bug to Apple with the (shortened) log below.
Process: Xcode [7494]
Path: /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier: com.apple.dt.Xcode
Version: 9.0 (13247)
Build Info: IDEFrameworks-13247000000000000~26
App Item ID: 497799835
App External ID: 823595305
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Xcode [7494]
User ID: 501
Date/Time: 2017-09-20 20:04:30.103 +0200
OS Version: Mac OS X 10.12.6 (16G29)
Report Version: 12
Anonymous UUID: 9D0C9FF5-77EB-F94F-67E5-634E39EAE67B
Sleep/Wake UUID: 30F3DB44-C016-4799-AD07-A080AA633DE8
Time Awake Since Boot: 14000 seconds
Time Since Wake: 1500 seconds
System Integrity Protection: enabled
Crashed Thread: 14 Dispatch queue: ConcurrentQueue: -[IDEDistributionPackagingStepViewController viewDidInstall]_block_invoke
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x000007fcb5ab5718
Exception Note: EXC_CORPSE_NOTIFY
Termination Signal: Segmentation fault: 11
Termination Reason: Namespace SIGNAL, Code 0xb
Terminating Process: exc handler [0]
This post was also posted on Apple Developer Forums.

After struggling with Xcode 9 for many days and having tried so many things icluding some mentioned here. I ended up
Download and install Xcode 8.3.3 ( Always keep the older version, lesson for life )
Archive the app with Xcode 9
Open Xcode 8.3.3, open Organizer and submit the app
This works. Good luck.
Update: Xcode 9.0.1 and Xcode 9.1 beta doesn't fix the issue.

I just solved the problem.
I have the same problem with Xcode Version 9.0.1 (9A1004).
First of all, check your problem is exactly same as mine.
To do this, open Terminal and put 'xattr' command and Enter.
If you can see kinda 'Permission denied' error message, fortunately you are just same as mine.
Now you can solve the problem by putting this one line command.
sudo chown -R $USER:$(id -g) /Library/Python/2.7/site-packages/protobuf-3.2.0-py2.7.egg/EGG-INFO/
so you can do 'Upload to Appstore' or 'Export IPA'.

Related

Unable to launch Xcode 13 beta 1 and/or 2 on macOS Big Sur 11.4

I'm trying to install Xcode 13 beta on my MacBook Pro with macOS Big Sur 11.4. Here's what I did so far:
I downloaded Xcode 13 beta 2 from https://developer.apple.com/download/
Double click on the file, and then moved Xcode-beta.app to Macintosh HD/Applications
Tried to open it, but I get an error that says:
Unable to open Xcode-beta.app due to a problem.
Check with the developer to make sure Xcode-beta.app works with this version of macOS. You may need to reinstall the application. Make sure you install all available updates for the application and for macOS.
Click Report to view more detailed information and send a report to Apple.
And when I click to get more info I get this:
Process: Xcode [2153]
Path: /Applications/Xcode-beta.app/Contents/MacOS/Xcode
Identifier: com.apple.dt.Xcode
Version: 13.0 (19161.15)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Xcode [2153]
User ID: 501
Date/Time: 2021-06-28 09:23:54.342 +0200
OS Version: macOS 11.4 (20F71)
Report Version: 12
Bridge OS Version: 5.4 (18P4663)
Anonymous UUID: BF2F0872-D13E-DC73-9E8D-911CD7D080B3
Sleep/Wake UUID: 9EB93895-E33C-4EA2-96CD-FF88026D93E8
Time Awake Since Boot: 23000 seconds
Time Since Wake: 4800 seconds
System Integrity Protection: enabled
Crashed Thread: 0
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Termination Reason: DYLD, [0x1] Library missing
Application Specific Information:
dyld: launch, loading dependent libraries
Dyld Error Message:
dyld: Using shared cache: 4A889CE9-8D7E-304E-A5F7-84D819B0BF9C
Library not loaded: #rpath/XCTest.framework/Versions/A/XCTest
Referenced from: /Applications/Xcode-beta.app/Contents/SharedFrameworks/DVTKit.framework/Versions/A/DVTKit
Reason: image not found
Binary Images:
//Here there's an infinite list of binary images such as:
0x10c13f000 - 0x10c142fff com.apple.dt.Xcode (13.0 - 19161.15) <D505A1C0-5E95-3233-AB86-65959A8DE250> /Applications/Xcode-beta.app/Contents/MacOS/Xcode
I don't know how to solve this. I've seen other people that had a problem with antiviruses that blocked the app, but I don't have any installed. Many solutions I've seen require Xcode to be launched and set some preferences in the app's settings, but I can't launch Xcode so I can't try these solutions. I tried all the following commands:
sudo xcode-select -s /Applications/Xcode-beta.app/Contents/Developer
xcode-select --install
sudo xcode-select -switch /Library/Developer/CommandLineTools
sudo xcodebuild -license accept
I tried all this with Xcode 13 beta 1 and beta 2, I tried deleting them and re-downloading them and trying everything again, but nothing seems to work. Is there anyone that knows how can I make it work?

Castlabs electron app breaks when running on certain MacOS versions

I have developed a DRM playback app using the Castlabs electron fork for Content Security (https://github.com/castlabs/electron-releases) on MacOS High Sierra. I am receiving reports of the application failing to start on some MacOS versions with the following error message:
Process: indee [52975]
Path: /Applications/indee.app/Contents/MacOS/indee
Identifier: com.electron.indee
Version: ???
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: indee [52975]
User ID: 503
Date/Time: 2019-02-25 20:25:09.463 +0530
OS Version: Mac OS X 10.11.6 (15G31)
Report Version: 11
Anonymous UUID: 4BF915F3-40DA-0ABC-3930-F21B00CF3FD7
Sleep/Wake UUID: 69FABBB3-0032-4519-81B0-0CB25B679ACC
Time Awake Since Boot: 650000 seconds
Time Since Wake: 240 seconds
System Integrity Protection: enabled
Crashed Thread: 0
Exception Type: EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000002, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Application Specific Information:
dyld: launch, loading dependent libraries
Dyld Error Message:
Symbol not found: _kSecAttrKeyTypeECSECPrimeRandom
Referenced from: /Applications/indee.app/Contents/MacOS/../Frameworks/Electron Framework.framework/Electron Framework
Expected in: /System/Library/Frameworks/Security.framework/Versions/A/Security
in /Applications/indee.app/Contents/MacOS/../Frameworks/Electron Framework.framework/Electron Framework
From what I can tell, this issue is not consistently reproducible across different Macs running the same macOS version but it is common enough that it is creating problems. How do I fix this?
For reference, a couple of issues reported in electron-releases discusses the cause and solution for this problem: #34 and #30.
In short, this problem occurs when a build is using an older version of the MacOSX10.12 SDK where the availability macros are incorrectly indicating availability of the kSecAttrKeyTypeECSECPrimeRandom symbol on target os versions where it is not. This causes non-weak linking to be used for the symbol, effectively making it required, and thus causes failure on systems where it is missing (i.e. systems prior to 10.12 - Sierra). The solution for us was to use a corrected version of the MacOSX10.12 SDK, such as the one provided with Xcode 8.3.3, when building our releases.

Xcode 6.3.1 quit unexpectedly

I'm getting an error Xcode 6.3.1 quit unexpectedly whenever Xcode is opened. This was working fine till last night. I have tried restart system but didn't worked. Reinstalling won't be feasible approach since I have downloaded simulator and documentations (approx 8GB of data).
Below is details of error :
Process: Xcode [816]
Path: /Applications/Xcode 6.3.1.app/Contents/MacOS/Xcode
Identifier: com.apple.dt.Xcode
Version: 6.3.1 (7703)
Build Info: IDEFrameworks-7703000000000000~4
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Xcode [816]
User ID: 501
Date/Time: 2015-05-29 12:05:22.140 +0530
OS Version: Mac OS X 10.10.3 (14D136)
Report Version: 11
Anonymous UUID: ...
Time Awake Since Boot: 4600 seconds
Crashed Thread: 6 Dispatch queue: gputools.DYKeyedUnarchiver.0x112ce03e0
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x00007fffc6fbc3af
...
Remove any 3rd party plugins that you had installed with xcode and it should work fine.
This is probably because of DYKeyedUnarchiver.h. So remove it, restart system and try reopening xcode.
Now, it's working fine. Simply kept system shut-down for sometime. Maybe shutdown have reset all settings of Mac.

xcode6.0.1 not able to start ios8 simulator [duplicate]

This question already has answers here:
Xcode beta 6 iOS 8: Simulator not working
(20 answers)
Closed 8 years ago.
Updated xcode to 6.0.1, ios 8 simulator unable to boot.
I tried in xcode preferences, under download tap, I can only see ios7 simulator and ios 7.1 simulator, no ios 8 simulator available to download from there, I was able to download ios 7 or 7.1 simulator and run test app on simulator, but can't find the way how to make it work with ios8 simulator, does anyone as any ideas?:(
here is my system crash report:
Process: launchd_sim [1385]
Path: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/sbin/launchd_sim
Identifier: launchd_sim
Version: 2.0.0 (560.1.3)
Code Type: X86-64 (Native)
Parent Process: launchd [155]
Responsible: launchd_sim [1385]
User ID: 501
Date/Time: 2014-09-26 11:11:52.309 +0100
OS Version: Mac OS X 10.9.5 (13F34)
Report Version: 11
Anonymous UUID: 048D18A1-2364-DAD1-67B6-1BF02E5CF5D5
Crashed Thread: 0
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000
VM Regions Near 0:
-->
__TEXT 0000000102c24000-0000000102c5d000 [ 228K] r-x/r-x SM=COW /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/sbin/launchd_sim
Application Specific Information:
dyld: launch, loading dependent libraries
DYLD_INSERT_LIBRARIES=/usr/lib/libimckit.dylib
DYLD_ROOT_PATH=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk
DYLD_FALLBACK_LIBRARY_PATH=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/lib
DYLD_FALLBACK_FRAMEWORK_PATH=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/Frameworks
DYLD_SHARED_REGION=avoid
Do you have any crash logs (eg: launchd_sim crashes) in ~/Library/Logs/DiagnosticReports? If so, can you provide one of them?
Is there anything interesting in ~/Library/Logs/CoreSimulator/CoreSimulator.log?
The issue is that you have DYLD_INSERT_LIBRARIES=/usr/lib/libimckit.dylib in your environment. What is this for?
The iOS 8 simulator will not work on OS X Mavericks if you try to inject host dylibs into the process via DYLD_INSERT_LIBRARIES. OS X Yosemite has software changes that will work around this problem and just log the issue rather than crashing.
I suggest that you either upgrade to OS X Yosemite or simply unset DYLD_INSERT_LIBRARIES (and/or uninstall the rest of the software that is associated with libimckit.dylib).
To make sure that DYLD_INSERT_LIBRARIES is not set, edit /etc/launchd.conf or $HOME/.launchd.conf (eg: sudo nano -w /etc/launchd.conf). Look for a relevant 'setenv' line, delete it, save, and reboot your system.
Tyr going to the Window menu and selecting 'Devices'. In the window that appears there is a '+' button at the bottom left. You can use this to add more simulator devices hopefully including the iOS 8 ones.

Firefox 4 quits unexpectedly running Cucumber/Capybara/Webdriver

I just updated to the latest Firefox (4) and now our Cucumber, Capybara and Webdriver test suite is throwing errors when it tries to launch Firefox (anything marked with #javascript).
Our test suite was running fine (and fully passing) before I upgraded to Firefox 4 yesterday.
Here are the problem details as would be reported to Apple (I'm on a Mac):
Process: firefox-bin [756]
Path: /Applications/Firefox.app/Contents/MacOS/firefox-bin
Identifier: firefox-bin
Version: ??? (???)
Code Type: X86-64 (Native)
Parent Process: ruby [656]
Interval Since Last Report: 74 sec
Crashes Since Last Report: 5
Per-App Interval Since Last Report: 0 sec
Per-App Crashes Since Last Report: 5
Date/Time: 2011-03-23 07:52:28.298 -0700
OS Version: Mac OS X 10.5.8 (9L31a)
Report Version: 6
Anonymous UUID: 8DC774A8-BD92-4645-8720-2D39B03B36AF
Exception Type: EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000002, 0x0000000000000000
Crashed Thread: 0
Dyld Error Message:
unknown required load command 0x80000022
I haven't been able to find any other reference of this issue online and don't know where to start with troubleshooting it...
Any help is greatly appreciated. Thanks.
Update: after going back to 3.6 things work again. It seems the problem is specifically with Firefox 4 (both via update and directly from the site).
This is an issue with Firefox when launched from the command line on 10.5. It has been reported to Mozilla, but closed as WONTFIX.
Obviously not the ideal solution, but you can work around this by stripping the x86_64 parts of the firefox-bin binary:
cd /Applications/Firefox.app/Contents/MacOS
mv firefox-bin firefox-bin.original
ditto --arch i386 firefox-bin.original firefox-bin

Resources