Error while reading embedded mobileprovision Error Domain=NSCocoaErrorDomain Code=260

cordova-plugin-firebase
iOS で通知がこない。ログを見ていると・・・

5.7.0 – [Firebase/InstanceID][I-IID003014] Error while reading embedded mobileprovision Error Domain=NSCocoaErrorDomain Code=260 “ファイル“embedded.mobileprovision”は存在しないため、開けませんでした。” UserInfo={NSFilePath=/var/containers/Bundle/Application/9B4820D5-BB5C-45F4-9145-ED4369D79018/SagabiAPP.app/embedded.mobileprovision, NSUnderlyingError=0x281dbd170 {Error Domain=NSPOSIXErrorDomain Code=2 “No such file or directory”}}

■対策
cordova/lib/copy-www-build-step.js
Line 56
shell.rm(‘-rf’, path.join(dstDir, ‘embedded.mobileprovision’));

///shell.rm(‘-rf’, path.join(dstDir, ‘embedded.mobileprovision’));

参考 https://github.com/phonegap/phonegap-plugin-push/issues/2518



info.plist
FirebaseAppDelegateProxyEnabled:boolean = NO
FirebaseMessagingAutoInitEnabled:boolean = YES