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: Rick Mann <email@hidden>
- Date: Fri, 19 Apr 2013 14:12:43 -0700
Those are excellent questions, and all I can say is that I migrated from the old machine during setup.
What this means is that the new machine came with whatever is the currently-shipping version of OS X (10.8.3, which is what I had on the previous machine). When you first boot it up, it launches straight into the Setup process. One of the options there is to migrate from a number of sources, including Time Machine backups and other systems.
I put my old machine in Target Disk Mode, connected the two machines with Thunderbolt, and migrated. I'm fairly sure this leaves the current OS on the new machine, and grabs all the other bits (/Library additions, all my /usr/local/, all my user directories, including the keychain files for those users).
I did NOT do anything in addition to that to migrate certs. All my certs are still in my keychain, and I'm able to build signed stuff for iOS that works just fine.
On Apr 19, 2013, at 13:19 , Alex Zavatone <email@hidden> wrote:
>
> 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.
--
Rick
_______________________________________________
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