chirag04 / react-native-in-app-utils

A react-native wrapper for handling in-app payments
MIT License
892 stars 187 forks source link

Code Signing #165

Open felixmagnell opened 6 years ago

felixmagnell commented 6 years ago

Hello! I'm trying to implement inapputils on a test app. I did all the steps in from 1-13 in the tutorial. It works to run my app (just a test app with react-native init) on device from Xcode. As soon as i install the package with: react-native install react-native-in-app-utils i get this error when i try to run on device:

This is the error in Xcode:

Check dependencies

Code Signing Error: Signing for "InAppUtilsTests" requires a development team. Select a development team in the project editor. Code Signing Error: Code signing is required for product type 'Unit Test Bundle' in SDK 'iOS 11.2'

Thankful for advice!

felixmagnell commented 6 years ago

I solved it! I had to code sign in the "InAppUtilsTests" under the general tab.

ricbermo commented 6 years ago

@feluxz would u mind sharing some steps to do that? Thanks in advance

felixmagnell commented 6 years ago

@ricbermo When you get the error message in xcode scroll down to InAppUtilsTest (2 issues). Select InAppUtilsTests under TARGETS and select a team for it.

xcodeinapperror

dwilt commented 5 years ago

It's wonderful that @feluxz 's fix works but every time we update our provisioning profiles or clone the the repo, we have to do this. What changed? Why did this all of a sudden start happening?

airlaser commented 5 years ago

Is there any idea of how to get this fixed permanently? It seems wherever this is used, the code signing has to be set. I've never seen this happen with other libraries.

airlaser commented 5 years ago

I was able to fix this semi-permanently by unlinking the Tests library. ("Linked Frameworks and Libraries" in the General tab of the overall project. Make sure to not unlink the main library)

andrewzey commented 5 years ago

@airlaser Thank you, that resolved my issue!

awchang56 commented 5 years ago

to follow up @airlaser, go to Link Binary With Libraries under Build Phases making sure your project is selected under targets. Remove the linked library with that contains the name InAppUtilsTests.