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

Apple Match-O Linker Error when building on iOS #388

Closed
cecampos opened this issue Jun 28, 2017 · 9 comments
Closed

Apple Match-O Linker Error when building on iOS #388

cecampos opened this issue Jun 28, 2017 · 9 comments

Comments

@cecampos
Copy link

After running the followings commands:

  • npm install
  • react-native link react-native-svg
    The xcode projects throws an "Apple Match-O Linker Error" error message.
    My package.json uses:
  • react-native: "0.45.1"
  • react-native-svg: "5.2.0"
  • react: "16.0.0-alpha12"

The problem appears when using react-native link for the react-native-svg folder, I can build when I unlink that very same folder.
Any help would be appreciated.

@cecampos cecampos changed the title Apple MAtch-O Linker Error when building on iOS Apple Match-O Linker Error when building on iOS Jun 28, 2017
@alexwasner
Copy link

In Link Binary with Library, try removing the -tvOS.a file. Thats what I did and got it to build

@ansierras
Copy link

I am having this same issue. @alexwasner can you be a little bit more specific on your solution? I don't understand... THX!

@OssamaZ
Copy link

OssamaZ commented Jul 9, 2017

@ansierras in the build phases of your project, open Link Binary With Libraries, select libRNSVG-tvOS.a and click - to remove it.

@ansierras
Copy link

Perfect. This solved the problem for me! :D

@magicismight
Copy link
Collaborator

duplicated with: #387

@skjangid
Copy link

skjangid commented Jun 2, 2018

Undefined symbols for architecture x86_64:
"OBJC_CLASS$_FBSDKHashtag", referenced from:
objc-class-ref in libRCTFBSDK.a(RCTConvert+FBSDKSharingContent.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 don't have -tvOS.a file in the binary list, so how i can resolve this error ?

@bhaskartalluri999
Copy link

bhaskartalluri999 commented Jun 14, 2018

while building react-native project in xcode following errors are occured,
clang: error: unknown argument: '-no_deduplicate'

clang: error: no such file or directory: '/Users/pradeepkrish/Library/Developer/Xcode/DerivedData/projectname-bcvkbiqlzwpsqadbqmrlcqgqzvzz/Build/Intermediates.noindex/projectname.build/Debug-iphonesimulator/InnovaZones.build/Objects-normal/x86_64/projectname_lto.o'

clang: error: no such file or directory: '2'
clang: error: no such file or directory: '/Users/pradeepkrish/Library/Developer/Xcode/DerivedData/projectname-bcvkbiqlzwpsqadbqmrlcqgqzvzz/Build/Intermediates.noindex/projectname.build/Debug-iphonesimulator/projectname.build/Objects-normal/x86_64/projectname_dependency_info.dat'

how can i solve this.Any suggestion?

@fazeelzama20
Copy link

@OssamaZ I am not having any libRNSVG-tvOS.a in the link library. I am having libRNSVG.a only. Any help?

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

9 participants