loadsmart / rn-salesforce-chat

React Native wrapper for Salesforce SDK chat
MIT License
7 stars 10 forks source link

Unable to upload to App Store ERROR ITMS-90035: Invalid Signature. Code object is not signed at all #23

Closed punch1985 closed 3 years ago

punch1985 commented 3 years ago

Xcode 12.5 / 12.4 React native 0.61.5 rn-salesforce-chat 2.0.1

ERROR ITMS-90035: "Invalid Signature. Code object is not signed at all. The file at path [XXXX.app/Frameworks/ServiceCore.framework/prepare-framework] is not properly signed. Make sure you have signed your application with a distribution certificate, not an ad hoc certificate or a development certificate. Verify that the code signing settings in Xcode are correct at the target level (which override any values at the project level). Additionally, make sure the bundle you are uploading was built using a Release target in Xcode, not a Simulator target. If you are certain your code signing settings are correct, choose "Clean All" in Xcode, delete the "build" directory in the Finder, and rebuild your release target. For more information, please consult https://developer.apple.com/library/ios/documentation/Security/Conceptual/CodeSigningGuide/Introduction/Introduction.html"

lenoirzamboni commented 3 years ago

@punch1985 Hello! Could you please provide more info about the issue:

Describe the issue A clear and concise description of what the issue is.

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Smartphone (please complete the following information):

rn-salesforce-chat version (please complete the following information):

Screenshots If applicable, add screenshots to help explain your problem.

Thanks!

punch1985 commented 3 years ago

Describe the issue

Error reported when upload ipa to App Store Connect. I have tried to upload via Xcode and Transporter but both failed. here is the full error message:

ERROR ITMS-90035: "Invalid Signature. Code object is not signed at all. The file at path [RentPay.app/Frameworks/ServiceCore.framework/prepare-framework] is not properly signed. Make sure you have signed your application with a distribution certificate, not an ad hoc certificate or a development certificate. Verify that the code signing settings in Xcode are correct at the target level (which override any values at the project level). Additionally, make sure the bundle you are uploading was built using a Release target in Xcode, not a Simulator target. If you are certain your code signing settings are correct, choose "Clean All" in Xcode, delete the "build" directory in the Finder, and rebuild your release target. For more information, please consult https://developer.apple.com/library/ios/documentation/Security/Conceptual/CodeSigningGuide/Introduction/Introduction.html"

Xcode version 12.5

To Reproduce Steps to reproduce the behavior:

integrate rn-salesforce-chat clean and archive using Xcode In Xcode's Organizer, select the archive and press "Distribute App", follow the steps to choose certificate and profile, then press upload.

I have also using AppCenter to build and deliver to App Store Connect (using Xcode 12.4). It does not report error but the build is not appear in App Store Connect.

Smartphone (please complete the following information):

iPhone 12 Any iOS Device (arm64, armv7)

rn-salesforce-chat version (please complete the following information):

Version: 2.0.1

Screenshots

Screen Shot 2021-05-29 at 9 27 48 am
punch1985 commented 3 years ago

@lenoirzamboni I found the solution

I follow the salesforce developer guideline to add a run script to in my project, except I need to change the path for the script to

../node_modules/@loadsmart/rn-salesforce-chat/ios/Frameworks/ServiceCore.framework/prepare-framework

It would be good if this included in the README file

see also: https://developer.salesforce.com/docs/atlas.en-us.noversion.service_sdk_ios.meta/service_sdk_ios/ios_prepare_for_appstore.htm

lenoirzamboni commented 3 years ago

@punch1985 Thanks for reporting and finding the solution. We will take a look at this. If you want, you can also contribute and send us a PR 😁

lenoirzamboni commented 3 years ago

The documentation for this was added on version 3.0.0.

Closing issue.