解決 ERROR ITMS-90296

如果你的 App 包含了 .entitlements 并且啟用了沙盒,但上傳到 App Store 時(shí)仍然出現(xiàn)如下錯(cuò)誤的話:

ERROR ITMS-90296: "App sandbox not enabled. The following executables must include the "com.apple.security.app-sandbox" entitlement with a Boolean value of true in the entitlements property list: [( "com.app.pkg/Payload/AppName.app/Contents/MacOS/AppName" )] Refer to App Sandbox page at https://developer.apple.com/devcenter/mac/app-sandbox/ for more information on sandboxing your app."

那就打開終端然后執(zhí)行如下命令:

  • cd /yourprojectdirectory
  • codesign --entitlements entitlements.plist -v -f -s "3rd Party Mac Developer Application: xxx xxx (XXXXXXXXXX)" yourappname.app
  • productbuild --component yourappname.app /Applications --sign "3rd Party Mac Developer Installer: xxx xxx (XXXXXXXXXX)" yourappname.pkg
最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

推薦閱讀更多精彩內(nèi)容