--resource-rules has been deprecated in mac os x >= 10.10

后端 未结 8 684
执笔经年
执笔经年 2020-12-07 14:19

I tried to resign my ipa file with new provisioning profile on Mac Os 10.10 with iResign app but I got this warning: \"Warning: --resource-rules has been deprecated in Mac O

8条回答
  •  南方客
    南方客 (楼主)
    2020-12-07 15:13

    If you are resigning app using terminal then you can even omit resource-rules while performing code sign, as there is no need to externally specify which resource to sign and which to not. Now it is mandatory to sign all the resources inside package.

    To resign app using terminal you can follow below steps:

    unzip MyApp.ipa
    
    rm -rf Payload/MyApp.app/_CodeSignature/
    
    cp ~/Desktop/MyAdHoc.mobileprovision Payload/MyApp.app/embedded.mobileprovision 
    
    codesign -f -s "iPhone Distribution: Code signing Certificate for Enterprise or Ad-hoc app" Payload/MyApp.app
    
    zip -qr MyApp_Resigned.ipa Payload/
    

提交回复
热议问题