2015-09-04 38 views
0

我们拥有由其他开发人员用其证书开发的IPA文件。重新签署IPA文件

我们正在尝试重新签署使用其他开发人员证书构建和分发的IPA。如果您之前完成了此操作,或者对此有任何想法,请告诉我。

尝试了以下链接中提到的一些解决方案,但是我们能够生成IPA,但无法将其安装到设备中。

我们正在用iOS 8试用它。Mac 10.10。

+0

是对临时轮廓添加 –

回答

2

之间

  • 应享权利不匹配试试这个软件。对于我重新签署企业证书的IPA来说,它工作得很好。

    https://github.com/maciekish/iReSign

    在您的特定设备UDID
  • 2

    重新签名是一个多步骤的过程,每一步都会产生错误。所以请耐心等待,并尝试了解每一步。

    # Start with files: 
    # .ipa-file 'MyApp.ipa' 
    # New provisioning profile 'profile.mobileprovision' 
    
    # Unpack the .ipa-file 
    unzip MyApp.ipa 
    
    # Extract the old entitlements from the binary 
    codesign -d --entitlements :- Payload/MyApp.app > entitlements_old.plist 
    
    # Extract the new entitlements from the provisioning profile 
    security cms -D -i profile.mobileprovision > profile.plist 
    /usr/libexec/PlistBuddy -x -c 'Print :Entitlements' profile.plist > entitlements.plist 
    

    现在有编辑entitlements.plist所以application-identifier是正确的手动工序。请参考entitlements_old.plist作为参考,但请注意,值的开始处的团队标识符应该不同。

    # Then replace the embedded provisioning profile 
    cp profile.mobileprovision Payload/MyApp.app/embedded.mobileprovision 
    
    # Re-sign the binary and update entitlements 
    # 
    # Note: replace "Firstname Lastname (TEAMID123)" 
    #  with your certificate name 
    # 
    codesign -f -s "Firstname Lastname (TEAMID123)" \ 
        --entitlements entitlements.plist \ 
        Payload/MyApp.app 
    
    # Create ipa 
    zip -r MyApp2.ipa Payload/ 
    

    不幸的是,出现错误时的错误信息并没有提供任何有关错误的特殊信息。但它可能是:

    • 错误签名标识使用的二进制和供应配置文件