Under normal circumstances, it is a little troublesome to publish a test version to the user to ask the device ID of the other party and add it to the developer certificate. If it is a jailbroken machine, you can use xcode to create an IPA file, and directly synchronize it with iTunes, which is much more convenient.
- Select iOS device as the running target.
- Edit scheme-> Select Run [app name]-> select release in the build configuration drop-down box.
- Generate the compilation file, product-> build
- Create a payload directory anywhere
- Go to the compilation directory, and find xcode> preferences> locations> derived data.
- Find the release-iphoneos directory and copy [app name]. app to the payload directory created in step 1.
- Compress the payload directory and change it to. IPA.
- Double-click to add to iTunes
- Connect the device and synchronize it.
//////////////////////////////////////// //////////////////////////////////////// //////////////////////////////////////// //////////////////////////////////
This article uses the helloworld project as an example to teach you how to use the developer signature to package an IPA that can be installed on a jailbroken iOS device.
1. Create helloworld. app
- Select the developer signature for build settings in the project.
- Confirm that scheme selects the iOS device. If you connect to the device, remove it.
- Click product> build.
- After the build is complete, retrieve helloworld. App. You can find helloworld. app through the tree structure products on the left side of xcode,
- Right-click show in finder.
Copy code
2 generate Hellworld. IPA
- Create the payload folder, copy helloworld. app, and
- Copy the itunesartwork file and itunesmetadata file to the same directory as the payload folder.
- (Itunesartwork and itunesmetadata can be extracted from the IPA published to the appstore,
- This ensures that the packaged IPA information is consistent with the application information published to the appstore .)
- Select the itunesartwork, itunesmetadata, and payload folders, and right-click "compress 3 items"
- Change the compressed file archive. Zip to helloworld. IPA.
Copy code
The generated helloworld. IPA can be installed on the jailbreaking device.