我正在使用fastlane来构建并发送我的应用程序到testflight。这个过程一直很顺利,但是当我添加了通知扩展之后就出现了错误。现在它总是给我一个错误提示:
错误领域=IDEProvisioningErrorDomain Code=9,“OneSignalNotificationServiceExtension.appex”需要具有App Groups功能的配置文件。 UserInfo={NSLocalizedDescription="OneSignalNotificationServiceExtension.appex" requires a provisioning profile with the App Groups feature., NSLocalizedRecoverySuggestion=Add a profile to the "provisioningProfiles" dictionary in your Export Options property list.}
在Xcode中应该自动处理所有内容,我的fastfile看起来像这样:
错误领域=IDEProvisioningErrorDomain Code=9,“OneSignalNotificationServiceExtension.appex”需要具有App Groups功能的配置文件。 UserInfo={NSLocalizedDescription="OneSignalNotificationServiceExtension.appex" requires a provisioning profile with the App Groups feature., NSLocalizedRecoverySuggestion=Add a profile to the "provisioningProfiles" dictionary in your Export Options property list.}
在Xcode中应该自动处理所有内容,我的fastfile看起来像这样:
default_platform(:ios)
platform :ios do
before_all do
increment_build_number
end
desc "Push a new beta build to TestFlight"
lane :beta do
get_certificates # invokes cert
get_provisioning_profile # invokes sigh
build_app(workspace: "MyApp.xcworkspace", scheme: "MyApp (Production)")
pilot(skip_waiting_for_build_processing: true)
end
end
我的应用程序的bundle标识符类似于com.myapp.ios,而我的通知服务的bundle标识符类似于com.myapp.ios.notificationservice。
我已经尝试手动创建不同bundle标识符的多个provisioning profiles,但fastlane只会选择一个。我该如何解决这个问题?