react-native-in-app-utils icon indicating copy to clipboard operation
react-native-in-app-utils copied to clipboard

Code Signing

Open felixmagnell opened this issue 7 years ago • 8 comments

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 avatar Mar 22 '18 18:03 felixmagnell

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

felixmagnell avatar Mar 22 '18 19:03 felixmagnell

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

ricbermo avatar Apr 10 '18 14:04 ricbermo

@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

felixmagnell avatar Apr 11 '18 07:04 felixmagnell

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?

dwilt avatar Jul 31 '18 19:07 dwilt

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 avatar Sep 05 '18 18:09 airlaser

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)

airlaser avatar Sep 10 '18 17:09 airlaser

@airlaser Thank you, that resolved my issue!

andrewzey avatar Oct 03 '18 04:10 andrewzey

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.

awchang56 avatar Oct 03 '18 04:10 awchang56