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

Undefined symbols for architecture arm64 #190

Open
krlol opened this issue Apr 9, 2022 · 1 comment
Open

Undefined symbols for architecture arm64 #190

krlol opened this issue Apr 9, 2022 · 1 comment

Comments

@krlol
Copy link

krlol commented Apr 9, 2022

Hello, I have the following issue when running after fresh install (already linked and installed cocoapods):

ld: warning: directory not found for option '-F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.4.sdk/System/iOSSupport/System/Library/Frameworks'
Undefined symbols for architecture arm64:
  "_OBJC_METACLASS_$_RCTEventEmitter", referenced from:
      _OBJC_METACLASS_$_RNLocation in RNLocation.o
  "_OBJC_CLASS_$_RCTEventEmitter", referenced from:
      _OBJC_CLASS_$_RNLocation in RNLocation.o
  "_OBJC_CLASS_$_RCTConvert", referenced from:
      objc-class-ref in RNLocation.o
  "_RCTRegisterModule", referenced from:
      +[RNLocation load] in RNLocation.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Does somebody have seen anything similar before?

@ba9nist
Copy link

ba9nist commented Oct 4, 2022

@krlol please add this to your Podfile
pre_install do |installer|
installer.pod_targets.each do |pod|
if pod.name.eql?('react-native-location')
def pod.build_type
Pod::BuildType.static_library
end
end
end
end

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

2 participants