开发者

Resource for steps to put app onto physical iOS device

开发者 https://www.devze.com 2023-03-18 09:47 出处:网络
I have a PhoneGap application which works in the Xcode simulator. I also am in the Apple Developer Program so I can do code signing to run apps on actual devices.

I have a PhoneGap application which works in the Xcode simulator. I also am in the Apple Developer Program so I can do code signing to run apps on actual devices.

However, I am having a hard time finding a good resource to walk me through the exact steps to get the app on my physical iPhone/iPad. I have found other guides which are either for Xcode 3, or they show how to get PhoneGap working in the emulator but not how to get on an actual device, or they are presumably using a different version of Xcode 4 because they reference different commands than I have.

If you have successfully deployed an application from Xcode 4 onto an iOS device, could you please post a link to steps that you used or refer a book that has that information? I appreciate any help that anyone can give on the subject. Thanks!

[Edit: Though I am using PhoneGap, the steps to deploy from Xcode to iOS device are AFAIK the same.]

[Edit to add more detail:

I have my project made and it runs on iPhone 4 simulator and iPad 4 simulator.

I also can plug in my iPad (already went through the assistant to get it provisioned), select it in the scheme list box, click the Run button and it will launch as expected on the iPad. Does this mean that I have the code signing part working at least?

So far so good. Now I want to make a build so that I can distribute to people to test the app on their devices (I have their UDIDs already).开发者_Python百科 When I get to the "Publishing Your Application for Distribution" section of the iOS Development Guide in the iOS Developer Library, I get stuck in the Archiving Your Application for Testing section. I am having trouble finding the Code Signing Identity build setting. It also looks like they have changed the menus around because they refer to a Build > Build and Archive menu item that doesn't exist anymore. I tried Product > Build for > Build For Archiving which seems like the closest option and the build actually succeeds but in the Organizer > Archives tab there are no archives.

Sorry that I do not have more specific information about where the process is breaking down for me but I'm new to the Xcode environment. I can typically figure these things out on my own as long as there is documentation somewhere but I have not been able to find any that match my build of Xcode. Thanks!]

[Edit again: After doing more research I ended up following the suggestion of others and did a complete uninstall/reinstall of Xcode which ended up resolving the issue albeit in a rather heavy handed way.]


You'll want to check out Apple's Documentation, for sure:

  • iOS Development Guide: Managing Devices and Digital Identities
  • iOS Development Guide: Building and Running Applications

They have a complete walkthrough of provisioning, building, and deploying your application to a device.

The Xcode Organizer makes it fairly straight forward and painless now... but there are still some sticking points, and reading the documentation will give you a full overview of exactly what's going on in the process.


Contrary to apple advise, setting Skip Install (Build Setting) to NO fixed this. Using phone gap here.

Archives not showing up in Organizer for XCode 4


Once you have your Apple Developer Account Credentials, You can follow gist I have created:

Apple's Code Signing Process

0

精彩评论

暂无评论...
验证码 换一张
取 消