Re: Xcode fails to launch my app, permission denied
Re: Xcode fails to launch my app, permission denied
- Subject: Re: Xcode fails to launch my app, permission denied
- From: Alex Zavatone <email@hidden>
- Date: Fri, 19 Apr 2013 16:19:43 -0400
On Apr 19, 2013, at 3:08 PM, Rick Mann wrote:
>
> On Apr 19, 2013, at 07:02 , Alex Zavatone <email@hidden> wrote:
>
>> Change your System Preferences to "Run applications from any developer"?
>
> Already set. The wording is "Allow applications downloaded from: Anywhere", right? There's not another setting somewhere?
Not sure. Currently booted to a more user friendly version of the Mac OS, but it's under Security.
>> It would be funny (sad) if Apple's security settings were preventing you from running your own app because it thought you too shady and not secure enough.
>>
>> But you upgraded it. OK. That tells us nothing. What was upgraded? Whatever was upgraded, what was it upgraded from and what was it upgraded to?
>
> I mean I upgraded the hardware from a mid-2011 unibody MacBook Pro 15" to the current retina 15"
>
>> You're making us guess. Please don't make us guess.
>
> I'd be shocked if the actual hardware made a difference. I did state the key point that I migrated from the old machine during initial setup.
But if you upgraded the hardware, did you keep the same version of the OS? Did you keep the EXACT same image of the HD that you previously had or are you starting fresh on a fresh, shiny new machine?
If you did upgrade your OS, did you make sure to grab your personal public/private key from the keychain? I know that these are required for iOS projects especially if you want to build on to devices or deploy apps.
> On Apr 19, 2013, at 07:23 , Andy Lee <email@hidden> wrote:
>
>> Maybe show us the actual error text? Are you getting an alert? Messages in Console?
>
> In the console, I get this:
>
> error: failed to launch '/Users/me/Library/Developer/Xcode/DerivedData/MyApp-drxgveyocvdoexedqzcecgzysokk/Build/Products/Debug/MyApp.app/Contents/MacOS/MyApp' -- Permission denied
>
> Yesterday, I was also getting an alert (with Xcode's icon) popping up:
>
> Could not launch “WorldClock”
> Permission denied
>
>> Are you saying you can't run the app even from Xcode? Is it literally failing to launch, or is it failing at some point where you can get a stack trace?
>
I don't know when creating Mac OS executables, but when developing for iOS, if you do not migrate your developer cert with your public/private key when you move to a different development Machine, reinstall your OS, or upgrade your hardware, you will not be able to sign apps since you don't have your validated personal cert for it in your keychain.
Did you do that thing where you export your developer cert from your login keychain as a p12 file, or did you just switch to a new Mac, install Xcode and start coding?
From the scent of the winds that blow, it appears that the security practices for iOS are moving/have moved into the Mac OS world and it's SUPER IMPORTANT to make sure that your public/private key that you used to create your dev cert and the provisioning profiles/distro profiles (on iOS) migrate with you from Mac to Mac.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden