OneSignal / react-native-onesignal

React Native Library for OneSignal Push Notifications Service
Other
1.57k stars 373 forks source link

Distribute App Failed due to "Code signing "OneSignal.framework" failed." #1256

Closed thuann-vn closed 3 years ago

thuann-vn commented 3 years ago

Description:

After following all steps in this docs: https://documentation.onesignal.com/docs/react-native-sdk-setup I am able to debug my app and receiving notifications. But while trying to deploy, I unable to deploy my app due to this message: Code signing "OneSignal.framework" failed. Please help me to fix it!

Screen Shot 2021-07-14 at 02 23 40

Environment

  1. I'm using version 4.1.1
  2. Using NPM

Steps to Reproduce Issue:

  1. Add package to my app via NPM
  2. Install for iOS using Cocoapods
  3. Initialize the OneSignal SDK

Anything else:

(crash stacktraces, as well as any other information here) 021-07-13 18:43:01 +0000 Running /usr/bin/xattr '-crs' '/var/folders/xf/7vrl4wv513z0prcr99flf92c0000gn/T/XcodeDistPipeline.~~~fFnFT0/Root/Payload/VeSoTuChonOnline.app' 2021-07-13 18:43:01 +0000 /usr/bin/xattr exited with 0 2021-07-13 18:43:01 +0000 Processing step: IDEDistributionCodesignStep 2021-07-13 18:43:01 +0000 Entitlements for <IDEDistributionItem: 0x2e6f27720; bundleID='com.onesignal.OneSignal-Dynamic', path='<DVTFilePath:0x2a6832ce0:'/Users/zthuanguyen/Library/Developer/Xcode/Archives/2021-07-14/VeSoTuChonOnline 14-07-2021, 01.42.xcarchive/Products/Applications/VeSoTuChonOnline.app/Frameworks/OneSignal.framework'>', codeSigningInfo='<_DVTCodeSigningInformation_Path: 0x175b51460; isSigned='1', isAdHocSigned='0', signingCertificate='<DVTSigningCertificate: 0x2a1365860; name='Apple Development: Thua Nguyen (UK52QV3AL9)', hash='F84CA6CD5F751BCAD37E413E4D4A7BE7BEC8E4A1', serialNumber='<DVTSigningCertificateSerialNumber: 0x2a7fdc850>', certificateKinds='( "1.2.840.113635.100.6.1.12", "1.2.840.113635.100.6.1.2" ), issueDate='2021-02-04 15:51:43 +0000''>', entitlements='(null)', teamID='K5F3ABZX5Z', identifier='com.onesignal.OneSignal-Dynamic', executablePath='<DVTFilePath:0x2a3abb1c0:'/Users/zthuanguyen/Library/Developer/Xcode/Archives/2021-07-14/VeSoTuChonOnline 14-07-2021, 01.42.xcarchive/Products/Applications/VeSoTuChonOnline.app/Frameworks/OneSignal.framework/OneSignal'>', hardenedRuntime='0'>'>: { } 2021-07-13 18:43:01 +0000 Entitlements for <IDEDistributionItem: 0x2e6f27720; bundleID='com.onesignal.OneSignal-Dynamic', path='<DVTFilePath:0x2a6832ce0:'/Users/zthuanguyen/Library/Developer/Xcode/Archives/2021-07-14/VeSoTuChonOnline 14-07-2021, 01.42.xcarchive/Products/Applications/VeSoTuChonOnline.app/Frameworks/OneSignal.framework'>', codeSigningInfo='<_DVTCodeSigningInformation_Path: 0x175b51460; isSigned='1', isAdHocSigned='0', signingCertificate='<DVTSigningCertificate: 0x2a7f7a180; name='Apple Development: Thua Nguyen (UK52QV3AL9)', hash='F84CA6CD5F751BCAD37E413E4D4A7BE7BEC8E4A1', serialNumber='<DVTSigningCertificateSerialNumber: 0x2a7fbe7b0>', certificateKinds='( "1.2.840.113635.100.6.1.12", "1.2.840.113635.100.6.1.2" ), issueDate='2021-02-04 15:51:43 +0000''>', entitlements='(null)', teamID='K5F3ABZX5Z', identifier='com.onesignal.OneSignal-Dynamic', executablePath='<DVTFilePath:0x2a3abb1c0:'/Users/zthuanguyen/Library/Developer/Xcode/Archives/2021-07-14/VeSoTuChonOnline 14-07-2021, 01.42.xcarchive/Products/Applications/VeSoTuChonOnline.app/Frameworks/OneSignal.framework/OneSignal'>', hardenedRuntime='0'>'> are: { } 2021-07-13 18:43:01 +0000 Writing entitle ments for <IDEDistributionItem: 0x2e6f27720; bundleID='com.onesignal.OneSignal-Dynamic', path='<DVTFilePath:0x2a6832ce0:'/Users/zthuanguyen/Library/Developer/Xcode/Archives/2021-07-14/VeSoTuChonOnline 14-07-2021, 01.42.xcarchive/Products/Applications/VeSoTuChonOnline.app/Frameworks/OneSignal.framework'>', codeSigningInfo='<_DVTCodeSigningInformation_Path: 0x175b51460; isSigned='1', isAdHocSigned='0', signingCertificate='<DVTSigningCertificate: 0x172fa6ae0; name='Apple Development: Thua Nguyen (UK52QV3AL9)', hash='F84CA6CD5F751BCAD37E413E4D4A7BE7BEC8E4A1', serialNumber='<DVTSigningCertificateSerialNumber: 0x172f19120>', certificateKinds='( "1.2.840.113635.100.6.1.12", "1.2.840.113635.100.6.1.2" ), issueDate='2021-02-04 15:51:43 +0000''>', entitlements='(null)', teamID='K5F3ABZX5Z', identifier='com.onesignal.OneSignal-Dynamic', executablePath='<DVTFilePath:0x2a3abb1c0:'/Users/zthuanguyen/Library/Developer/Xcode/Archives/2021-07-14/VeSoTuChonOnline 14-07-2021, 01.42.xcarchive/Products/Applications/VeSoTuChonOnline.app/Frameworks/OneSignal.framework/OneSignal'>', hardenedRuntime='0'>'> to: /var/folders/xf/7vrl4wv513z0prcr99flf92c0000gn/T/XcodeDistPipeline.~fFnFT0/entitlements~vavPdH 2021-07-13 18:43:01 +0000 Running /usr/bin/codesign '-vvv' '--force' '--sign' 'DB66C308EFC4533D0CF99409C478A0B3026E4F1F' '--entitlements' '/var/folders/xf/7vrl4wv513z0prcr99flf92c0000gn/T/XcodeDistPipeline.~fFnFT0/entitlements~vavPdH' '--preserve-metadata=identifier,flags,runtime' '/var/folders/xf/7vrl4wv513z0prcr99flf92c0000gn/T/XcodeDistPipeline.~~~fFnFT0/Root/Payload/VeSoTuChonOnline.app/Frameworks/OneSignal.framework' 2021-07-13 18:43:01 +0000 /var/folders/xf/7vrl4wv513z0prcr99flf92c0000gn/T/XcodeDistPipeline.~~~fFnFT0/Root/Payload/VeSoTuChonOnline.app/Frameworks/OneSignal.framework: internal error in Code Signing subsystem 2021-07-13 18:43:01 +0000 /usr/bin/codesign exited with 1

rgomezp commented 3 years ago

Howdy, Thanks for your patience.

This could be an XCode 12 bug. Please take a look at this issue and the solution provided there regarding flipping the BITCODE setting to NO in Build Settings. It could also be an embedding issue.

Please try the above and let us know if it works for you.

Cheers

rgomezp commented 3 years ago

Closing due to no response

lucianojsjr commented 3 years ago

@rgomezp I followed the instructions in the link that you mentioned but I'm sill getting the error. I think it's not a problem with Xcode.

I disabled bit code. Could you reopen the issue?

@thuann-vn did you find any solution?