opsway / react-native-paytm

Unofficial React Native wrapper for PayTM iOS/Android SDK
10 stars 10 forks source link

IOS release build failed #1

Closed codebymani closed 5 years ago

codebymani commented 5 years ago

Hi opsway,

It's working great while building in "debug" mode and It was broken for release build.

Here's the log clang: error: no such file or directory: '/Users/Manipalreddy/Library/Developer/Xcode/DerivedData/stuMagz-djwihkiljmwzqehkhdyzqbptwmsp/Build/Products/Release-iphonesimulator/libRNPayTm.a'

I even tried to build by deleting derived data, clean. Is there any work around for release build ?

Xcode: 9.4.1 React Native: 55.4

philly25 commented 5 years ago

Hi, @codebymani!

Try these steps to resolve the issue:

  1. Important thing when clearing Derived Data is to close Xcode before clearing. So:

    • Close Xcode
    • To remove both derived data and build, run this command from your project's root directory:
      rm -rf ~/Library/Developer/Xcode/DerivedData && rm -rf ios/build
    • Open Xcode and try to archive
  2. Check if you have SystemConfiguration.framework in the "Link Frameworks and Libraries" section (as described in Step 1 of the official docs). If no, then add it.

  3. As suggestion, you can consider upgrading to Xcode 10. It will make your further life easier.

codebymani commented 5 years ago

None of them worked. May be I should upgrade to Xcode10. Thank You @philly25 .

codebymani commented 5 years ago

Hi, @codebymani!

Try these steps to resolve the issue:

  1. Important thing when clearing Derived Data is to close Xcode before clearing. So:
  • Close Xcode
  • To remove both derived data and build, run this command from your project's root directory:
rm -rf ~/Library/Developer/Xcode/DerivedData && rm -rf ios/build
  • Open Xcode and try to archive
  1. Check if you have SystemConfiguration.framework in the "Link Frameworks and Libraries" section (as described in Step 1 of the official docs). If no, then add it.
  2. As suggestion, you can consider upgrading to Xcode 10. It will make your further life easier.

Tried all the steps didn't work! I also tried upgrading to Xcode10. Is your SDK bitcode enabled?

philly25 commented 5 years ago

No, we use BitcodeDisabled SDK.

philly25 commented 5 years ago

Closed due to inactivity. Feel free to reopen this issue.

rv-tech commented 5 years ago

Still getting this error. Any updates on this