New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing symbols when archiving in RN 0.56.0 (RCTCxxBridge) on iOS #20896

Closed
ant-fx opened this Issue Aug 28, 2018 · 2 comments

Comments

Projects
None yet
2 participants
@ant-fx

ant-fx commented Aug 28, 2018

Environment

   React Native Environment Info:
     System:
       OS: macOS High Sierra 10.13.6
       CPU: x64 Intel(R) Core(TM) i7-4960HQ CPU @ 2.60GHz
       Memory: 33.04 MB / 16.00 GB
       Shell: 2.6.0 - /usr/local/bin/fish
     Binaries:
       Node: 8.11.3 - /usr/local/bin/node
       Yarn: yarn install v0.27.5
    [1/4] Resolving packages...
    success Already up-to-date.
    $ sed -i '' 's/#import <RCTAnimation\/RCTValueAnimatedNode.h>/#import 
     "RCTValueAnimatedNode.h"/' ./node_modules/react-native/Libraries/NativeAnimation/RCTNativeAnimatedNodesManager.h
    Done in 0.76s. - /usr/local/bin/yarn
      npm: 3.10.9 - /usr/local/bin/npm
      Watchman: 4.7.0 - /usr/local/bin/watchman
    SDKs:
      iOS SDK:
        Platforms: iOS 11.4, macOS 10.13, tvOS 11.4, watchOS 4.3
    IDEs:
      Android Studio: 3.0 AI-171.4443003
      Xcode: 9.4.1/9F2000 - /usr/bin/xcodebuild
    npmPackages:
      react: 16.4.1 => 16.4.1
      react-native: 0.56.0 => 0.56.0

Description

When archiving our app we get the following error:

Showing All Messages
  "_OBJC_CLASS_$_RCTCxxBridge", referenced from:
      objc-class-ref in libReact.a(RCTBridge.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

The app compiles and runs fine in the simulator and on a real device.

We have tried various suggestions found in other issues such as:

  • Adding BatchedBridge to the Podfile subspecs
  • Adding libcxxreact.a and libjschelpers. to the Linked Frameworks and Libraries for the project

So far nothing seems to work.

@react-native-bot

This comment has been minimized.

Show comment
Hide comment
@react-native-bot

react-native-bot Aug 28, 2018

Collaborator

Can you run react-native info and edit your issue to include these results under the Environment section?

If you believe this information is irrelevant to the reported issue, you may write [skip envinfo] under Environment to let us know.

Collaborator

react-native-bot commented Aug 28, 2018

Can you run react-native info and edit your issue to include these results under the Environment section?

If you believe this information is irrelevant to the reported issue, you may write [skip envinfo] under Environment to let us know.

@ant-fx ant-fx changed the title from Missing symbols when archiving in RN 0.56.0 (RCTCxxBridge) to Missing symbols when archiving in RN 0.56.0 (RCTCxxBridge) on iOS Aug 29, 2018

@ant-fx

This comment has been minimized.

Show comment
Hide comment
@ant-fx

ant-fx Aug 29, 2018

In case anybody else has this problem after upgrading to 0.56.0 the problem was some missing Podfile specs as defined here:

https://facebook.github.io/react-native/docs/integration-with-existing-apps.html

# Third party deps podspec link
pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'
pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec'
pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'

Then adding the CxxBridge subspec to react:

pod 'React', :path => '../node_modules/react-native', :subspecs => [
        'Core',
        'CxxBridge',
        'DevSupport',
        'RCTNetwork'
        ]

ant-fx commented Aug 29, 2018

In case anybody else has this problem after upgrading to 0.56.0 the problem was some missing Podfile specs as defined here:

https://facebook.github.io/react-native/docs/integration-with-existing-apps.html

# Third party deps podspec link
pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'
pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec'
pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'

Then adding the CxxBridge subspec to react:

pod 'React', :path => '../node_modules/react-native', :subspecs => [
        'Core',
        'CxxBridge',
        'DevSupport',
        'RCTNetwork'
        ]

@ant-fx ant-fx closed this Aug 29, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment