iOS OneSignalNotificationServiceExtension.appex:未知错误-1=ffffffffffffffff

Mou*_*heg 2 xcode ios ios-app-extension onesignal

我正在开发一个使用 OneSignal 集成推送通知的 iOS 应用程序。我遵循了 iOS SDK 设置指南,一切顺利,但由于我进行了最新的 xcode 更新和 macos 更新,我无法构建要发布的应用程序或仅在物理设备上构建应用程序。

我收到有关对 OneSignal 扩展进行代码签名的以下错误:

仅供参考:主要目标的捆绑包标识符是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
Run Code Online (Sandbox Code Playgroud)

我做了一些研究,但没有发现任何有帮助的东西。

Bra*_*sse 5

您需要将OneSignalNotificationServiceExtension捆绑包标识符更改为{您的应用程序的捆绑包 ID}.OneSignalNotificationServiceExtension。

除非您的实际应用程序的捆绑包 ID 为com.example.ios.app,否则捆绑包 IDcom.example.ios.app.OneSignalNotificationServiceExtension将不起作用。

更改捆绑 ID 后,您可以启用自动配置,它应该可以工作。