React-native-mapbox-gl: Compiling for target device : Undefined symbols for architecture armv7: "_RCTSetLogFunction"

Created on 6 Oct 2015  路  1Comment  路  Source: nitaliano/react-native-mapbox-gl

Following a bitcode error [https://github.com/mapbox/react-native-mapbox-gl/issues/93] I got this error preventing to compile on a target device (iphone 4S)

Xcode 7
OSX : 10.10.4
iPhone 4s (iOS 9.0.2)

ld: warning: directory not found for option '-F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk/Developer/Library/Frameworks'
Undefined symbols for architecture armv7:
  "_RCTSetLogFunction", referenced from:
      -[AwesomeProjectTests testRendersWelcomeScreen] in AwesomeProjectTests.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Most helpful comment

And here it is [https://github.com/facebook/react-native/issues/2685#issuecomment-142626306].
We need to disable dead code striping for the debug release on the target device.

I think it will be really useful to also add this to the tutorial. It seams to happens with xcode 7.

>All comments

And here it is [https://github.com/facebook/react-native/issues/2685#issuecomment-142626306].
We need to disable dead code striping for the debug release on the target device.

I think it will be really useful to also add this to the tutorial. It seams to happens with xcode 7.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

alexisohayon picture alexisohayon  路  4Comments

EugenePisotsky picture EugenePisotsky  路  4Comments

max-prokopenko picture max-prokopenko  路  4Comments

glennverschooren picture glennverschooren  路  4Comments

digitaldavenyc picture digitaldavenyc  路  4Comments