精通
英语
和
开源
,
擅长
开发
与
培训
,
胸怀四海
第一信赖
锐英源精品开源,禁止转载和任何形式的非法内容使用,违者必究
I am working on an iOS app which integrates push notifications using OneSignal. I've followed the iOS SDK setup guide and everything did work out fine but since I did the latest xcode update and macos updates I can't build the app for release or just on a physical device.我正在开发一个iOS应用程序,该应用程序使用OneSignal集成了推送通知。我遵循了iOS SDK安装指南,并且一切工作都很好,但是由于我做了最新的xcode更新和macOS更新,因此无法构建要发布的应用程序,或者说不能仅在物理设备上构建该应用程序。
I get the following error about code signing the OneSignal extension:我收到以下有关对OneSignal扩展进行代码签名的错误:
FYI: The main target's bundle identifier is com.example.ios.app仅供参考:主要目标的捆绑包标识符为 com.example.ios.app
CodeSign /Users/myUser/Library/Developer/Xcode/DerivedData/myApp-detsaukwwypeutcadzxgviircfje/Build/Intermediates.noindex/ArchiveIntermediates/myApp/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/OneSignalNotificationServiceExtension.appex cd /Users/pathToProject export CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin" Signing Identity: "iPhone Developer: Me (##########)" Provisioning Profile: "iOS Team Provisioning Profile: com.example.ios.app.OneSignalNotificationServiceExtension" (######-####-####-####-######) /usr/bin/codesign --force --sign E7160941E1D4E45D870F30CB31F3EC30BFB0ABBA --entitlements /Users/myUser/Library/Developer/Xcode/DerivedData/myApp-detsaukwwypeutcadzxgviircfje/Build/Intermediates.noindex/ArchiveIntermediates/myApp/IntermediateBuildFilesPath/myApp.build/Release-iphoneos/OneSignalNotificationServiceExtension.build/OneSignalNotificationServiceExtension.appex.xcent --timestamp=none /Users/myUser/Library/Developer/Xcode/DerivedData/myApp-detsaukwwypeutcadzxgviircfje/Build/Intermediates.noindex/ArchiveIntermediates/myApp/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/OneSignalNotificationServiceExtension.appex /Users/myUser/Library/Developer/Xcode/DerivedData/myApp-detsaukwwypeutcadzxgviircfje/Build/Intermediates.noindex/ArchiveIntermediates/myApp/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/OneSignalNotificationServiceExtension.appex: unknown error -1=ffffffffffffffff Command /usr/bin/codesign failed with exit code 1
I've done some research but haven't found anything that was of any help.我已经进行了一些研究,但没有发现有任何帮助。
You need to change the OneSignalNotificationServiceExtension Bundle Identifier to be {your app's bundle ID}.OneSignalNotificationServiceExtension.
Unless your actual app's Bundle ID is com.example.ios.app, the bundle ID com.example.ios.app.OneSignalNotificationServiceExtension will not work.
Once you change the Bundle ID, you can enable Automatic provisioning and it should work.
您需要将OneSignalNotificationServiceExtension捆绑包标识符更改为{您的应用程序的捆绑包ID} .OneSignalNotificationServiceExtension。
除非您的实际应用程序的捆绑包ID是com.example.ios.app,否则捆绑包ID com.example.ios.app.OneSignalNotificationServiceExtension将无法使用。
更改Bundle ID后,您可以启用自动配置,它应该可以正常工作。