react-native icon indicating copy to clipboard operation
react-native copied to clipboard

[iOS] Undefined symbols for architecture arm64: "_RCTSetLogFunction"

Open Javanaise opened this issue 11 years ago • 73 comments

Hello, I have this linking error: Undefined symbols for architecture arm64: "_RCTSetLogFunction", referenced from: -[PropertyFinderTests testRendersWelcomeScreen] in PropertyFinderTests.o

When i try to compile the default project on iOS. (using react-native init)

Javanaise avatar Sep 14 '15 20:09 Javanaise

If anything broke this it might have been my commit: https://github.com/facebook/react-native/commit/19f922aa806b027348d9243b0085126fe553e266

@kmagiera @brentvatne @ide Are you hitting this as well? My Xcode is unfortunately busted, reinstalling now.

mkonicek avatar Sep 14 '15 21:09 mkonicek

@javache is in London and it's quite late here. Can you unblock yourself by commenting out the test code until we can repro?

mkonicek avatar Sep 14 '15 21:09 mkonicek

@javache is with me at at-scale conf in SJ, he promised to take a look

kmagiera avatar Sep 14 '15 21:09 kmagiera

Awesome, thank you @kmagiera and @javache!

mkonicek avatar Sep 14 '15 21:09 mkonicek

Just did react-native init MyAwesomeApp and the app builds from Xcode and runs on an iPhone 6 simulator. What device are you using?

mkonicek avatar Sep 14 '15 22:09 mkonicek

@Javanaise - which version of Xcode? Only 6.3+ are supported

brentvatne avatar Sep 14 '15 22:09 brentvatne

@mkonicek A real iphone 6 @brentvatne 6.4

Javanaise avatar Sep 14 '15 22:09 Javanaise

@Javanaise - try pressing ⌘+k to clean the build and run it again

brentvatne avatar Sep 14 '15 22:09 brentvatne

@brentvatne did a Clean and a Clean build folder, still fails

Javanaise avatar Sep 14 '15 22:09 Javanaise

@Javanaise - have you tried in the simulator?

brentvatne avatar Sep 14 '15 22:09 brentvatne

@brentvatne it's working in the simulator

Javanaise avatar Sep 14 '15 22:09 Javanaise

@Javanaise - what OS version?

brentvatne avatar Sep 14 '15 22:09 brentvatne

Same problem on iphone 6 ios 8.3. It is working on the simulator.

hernanmateo avatar Sep 14 '15 22:09 hernanmateo

Also what simulator? Make sure it's 5s or newer which runs the x86_64 libs.

ide avatar Sep 14 '15 22:09 ide

@brentvatne os x ? 10.10.5 @ide I used iphone 6 for the simulator, and it built. I only have a problem with both my iphone 6 and 5 real phones.

Javanaise avatar Sep 14 '15 23:09 Javanaise

The same problem iPhone 6 iOS 8.4 OS X El Capitan 15A282b

fukai7722 avatar Sep 15 '15 01:09 fukai7722

Compiling fine for me (even after cleaning) w/actual iPhone 6, Xcode 7 GM, El Cap beta 8. Wonder if Xcode is the issue here...

ide avatar Sep 15 '15 03:09 ide

Also same problem Xcode Version 6.4 (6E35b) iphone6 plus ios 8.4.1 OSX 10.10.5

mingzgc avatar Sep 15 '15 10:09 mingzgc

Same here,

Xcode 7 GM iphone6 ios 8.4.1 OSX 10.10.5

fails only on real device.

as a quick workaround, removing tests makes this go away

jondot avatar Sep 15 '15 12:09 jondot

I can repro this when building the SampleApp for testing for iPhone 6 using Xcode 7 GM. Investigating.

javache avatar Sep 15 '15 15:09 javache