简体   繁体   中英

XCode / iOS : how to test with XCode (on a real device) an app developed by another developer?

I work with another developer. I would like to test its app but I don't have its iTunes Connect login / password and I don't have its dev certificates.

How can I test on my real device the bundle he sent to me without having many signing errors ?

I want to perform the test in Xcode in order to be able to use the debugger and perform some code modifications. I do not need to test the inapp purchase, just the core features of the app.

It is possible to resign the app with your own certificates. See this answer

您还可以使用XCode7 Beta,它允许您在没有Apple开发人员计划证书的情况下安装他们在其设备上开发的任何应用程序。

  1. Create a self signed code signing certificate.

Go to Keychain Access -> Certificate Assistant -> Create a Certificate. It opens the certificate assistant window. Enter name and select certificate type as Code signing. Check let me override defaults option. Hit continue until it creates the certificate.

  1. Copy /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Info.plist to desktop. Edit the plist file and replace all occurrences of XCiPhoneOSCodeSignContext by XCCodeSignContext (3 places – defaultproperties, runtimerequirements, overrideproperties).

  2. Copy the modified Info.plist file to /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/ directory and replace the existing file.

  3. Close and Restart the XCode.

  4. Create your project in the XCode and in the project target settings choose the certificate created in step 1 as the code signing identity. Project target settings are shown below.

    : http://i.stack.imgur.com/JmK8r.png

  5. Build the project for iOS device (Project->Build).

  6. Build creates the .app file in the build/Debug-iphoneos folder.

    Default location for .app file is – /Users/[user name]/Library/Developer/Xcode/DerivedData/[your app]/Build/Products/Debug-iphoneos/

  7. Create a folder named Payload and copy the .app file into it.

  8. Archive the Payload folder. It creates Payload.zip.
  9. Rename the Payload.zip to [app name].ipa.

Wooo Got it and it works.. enjoy

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM