Skip to content
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

9.10.0 Compile Error #1130

Closed
switchtrue opened this issue Oct 1, 2019 · 6 comments
Closed

9.10.0 Compile Error #1130

switchtrue opened this issue Oct 1, 2019 · 6 comments

Comments

@switchtrue
Copy link

Bug

In xcode, building a debug release for the simulator with react-native-svg 9.10.0 I am getting the following error:

Undefined symbols for architecture x86_64:
  "_OBJC_CLASS_$_RNSVGMarkerPosition", referenced from:
      objc-class-ref in libRNSVG.a(RNSVGRenderable.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

I believe this to be new with 9.10.0 as this is where RNSVGMarkerPosition was added.

Environment info

React native info output:

info 
  React Native Environment Info:
    System:
      OS: macOS 10.14.5
      CPU: (4) x64 Intel(R) Core(TM) i7-7660U CPU @ 2.50GHz
      Memory: 535.57 MB / 16.00 GB
      Shell: 5.3 - /bin/zsh
    Binaries:
      Node: 12.6.0 - /usr/local/bin/node
      Yarn: 1.17.3 - /usr/local/bin/yarn
      npm: 6.11.3 - /usr/local/bin/npm
      Watchman: 4.9.0 - /usr/local/bin/watchman
    SDKs:
      iOS SDK:
        Platforms: iOS 13.0, DriverKit 19.0, macOS 10.15, tvOS 13.0, watchOS 6.0
    IDEs:
      Xcode: 11.0/11A420a - /usr/bin/xcodebuild
    npmPackages:
      react: 16.8.3 => 16.8.3 
      react-native: 0.59.3 => 0.59.3 
    npmGlobalPackages:
      react-native-git-upgrade: 0.2.7

Library version: 9.10.0

Steps To Reproduce

  1. Install react-native-svg 9.10.0
  2. Clean
  3. Build (debug)
    ...

Describe what you expected to happen:

  1. Build successfully
@JoaoVitorViana
Copy link

I also have the same problem

Captura de Tela 2019-10-01 às 15 58 46

System: OS: macOS Mojave 10.14.5 CPU: (8) x64 Intel(R) Core(TM) i7-7820HQ CPU @ 2.90GHz Memory: 73.57 MB / 16.00 GB Shell: 5.3 - /bin/zsh Binaries: Node: 10.11.0 - /usr/local/bin/node Yarn: 1.10.1 - /usr/local/bin/yarn npm: 6.9.0 - /usr/local/bin/npm Watchman: 4.9.0 - /usr/local/bin/watchman SDKs: iOS SDK: Platforms: iOS 13.0, DriverKit 19.0, macOS 10.15, tvOS 13.0, watchOS 6.0 Android SDK: API Levels: 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29 Build Tools: 19.1.0, 20.0.0, 21.1.2, 22.0.1, 23.0.1, 23.0.2, 23.0.3, 24.0.0, 24.0.1, 24.0.2, 24.0.3, 25.0.0, 25.0.1, 25.0.2, 25.0.3, 26.0.0, 26.0.1, 26.0.2, 26.0.3, 27.0.0, 27.0.1, 27.0.2, 27.0.3, 28.0.0, 28.0.0, 28.0.0, 28.0.1, 28.0.2, 28.0.3 System Images: android-18 | Google APIs Intel x86 Atom, android-19 | ARM EABI v7a, android-19 | Intel x86 Atom, android-19 | Google APIs ARM EABI v7a, android-19 | Google APIs Intel x86 Atom, android-21 | Intel x86 Atom, android-22 | Google APIs Intel x86 Atom, android-23 | Google APIs Intel x86 Atom, android-24 | Google APIs Intel x86 Atom, android-25 | Google APIs Intel x86 Atom, android-26 | Google APIs Intel x86 Atom, android-26 | Google APIs Intel x86 Atom_64, android-27 | Google APIs Intel x86 Atom, android-27 | Google Play Intel x86 Atom, android-28 | Google APIs Intel x86 Atom, android-28 | Google Play Intel x86 Atom, android-Q | Android TV Intel x86 Atom Android NDK: 20.0.5594570 IDEs: Android Studio: 3.5 AI-191.8026.42.35.5791312 Xcode: 11.0/11A420a - /usr/bin/xcodebuild npmPackages: react: 16.8.3 => 16.8.3 react-native: 0.59.0 => 0.59.0 npmGlobalPackages: react-native-cli: 2.0.1 react-native-git-upgrade: 0.2.7

@msand
Copy link
Collaborator

msand commented Oct 1, 2019

Can you try relinking or running pod install?

@msand msand closed this as completed in cd70134 Oct 1, 2019
msand pushed a commit that referenced this issue Oct 1, 2019
## [9.10.1](v9.10.0...v9.10.1) (2019-10-01)

### Bug Fixes

* project.pbxproj for non cocoapods builds ([cd70134](cd70134)), closes [#1130](#1130)
@msand
Copy link
Collaborator

msand commented Oct 1, 2019

🎉 This issue has been resolved in version 9.10.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@msand msand added the released label Oct 1, 2019
@mjm918
Copy link

mjm918 commented Apr 20, 2021

I guess this issue is back in v12.1.0

I tried to unlink and link again. but no luck for me.

BTW the Header Search Path should be recursive or non-recursive?

@dushantSW
Copy link

I second that! v12.1.0 and XCode 12.5 has brought back the issue

@hyousi
Copy link

hyousi commented Oct 9, 2021

I got the same issue in both v12.1.0 and v12.1.1.

Then I uninstall v12.1.0 and install v12.2.0. Surprisingly, this version works for me.

JackWillie added a commit to JackWillie/react-native-svg that referenced this issue Nov 27, 2022
## [9.10.1](software-mansion/react-native-svg@v9.10.0...v9.10.1) (2019-10-01)

### Bug Fixes

* project.pbxproj for non cocoapods builds ([cd70134](software-mansion/react-native-svg@cd70134)), closes [#1130](software-mansion/react-native-svg#1130)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants