React Native iOS build failing for the following error: symbol(s) not found for architecture arm64
Hi I am trying to build a React Native project on iOS it has react-native-maps with it.
My podfile looks like this
# Uncomment the next line to define a global platform for your project
platform :ios, '9.0'
target 'APP_NAME' do
# Pods for APP_NAME
rn_path = '../node_modules/react-native'
rn_maps_path = '../node_modules/react-native-maps'
# See http://facebook.github.io/react-native/docs/integration-with-existing-apps.html#configuring-cocoapods-dependencies
pod 'yoga', path: "#{rn_path}/ReactCommon/yoga/yoga.podspec"
pod 'React', path: rn_path, subspecs: [
'Core',
'CxxBridge',
'DevSupport',
'RCTActionSheet',
'RCTAnimation',
'RCTGeolocation',
'RCTImage',
'RCTLinkingIOS',
'RCTNetwork',
'RCTSettings',
'RCTText',
'RCTVibration',
'RCTWebSocket',
]
# React Native third party dependencies podspecs
pod 'DoubleConversion', :podspec => "#{rn_path}/third-party-podspecs/DoubleConversion.podspec"
pod 'glog', :podspec => "#{rn_path}/third-party-podspecs/glog.podspec"
# pod 'GLog', :podspec => "#{rn_path}/third-party-podspecs/GLog.podspec"
pod 'Folly', :podspec => "#{rn_path}/third-party-podspecs/Folly.podspec"
# react-native-maps dependencies
pod 'react-native-maps', path: rn_maps_path
pod 'react-native-google-maps', path: rn_maps_path # Remove this line if you don't want to support GoogleMaps on iOS
# pod 'GoogleMaps' # Remove this line if you don't want to support GoogleMaps on iOS
# pod 'Google-Maps-iOS-Utils' # Remove this line if you don't want to support GoogleMaps on iOS
# Pods for APP_NAME
pod 'Firebase/Core', '~> 5.11.0'
pod 'Firebase/Firestore', '~> 5.11.0'
pod 'RNVectorIcons', :path => '../node_modules/react-native-vector-icons'
pod 'RNBackgroundFetch', :path => '../node_modules/react-native-background-fetch'
pod 'BVLinearGradient', :path => '../node_modules/react-native-linear-gradient'
pod 'Interactable', :path => '../node_modules/react-native-interactable'
target 'APP_NAME-tvOSTests' do
inherit! :search_paths
# Pods for testing
pod 'RNBackgroundFetch', :path => '../node_modules/react-native-background-fetch'
end
target 'APP_NAMETests' do
inherit! :search_paths
# Pods for testing
end
end
post_install do |installer|
installer.pods_project.targets.each do |target|
if target.name == 'react-native-google-maps'
target.build_configurations.each do |config|
config.build_settings['CLANG_ENABLE_MODULES'] = 'No'
end
end
if target.name == "React"
target.remove_from_project
end
end
end
target 'APP_NAME-tvOS' do
# Uncomment the next line if you're using Swift or would like to use dynamic frameworks
# use_frameworks!
# Pods for APP_NAME-tvOS
#target 'APP_NAME-tvOSTests' do
# inherit! :search_paths
# Pods for testing
# end
end
I am getting the below error each time.
I have tried all the solutions listed here
Undefined symbols for architecture arm64
But none of them is working for me.
Undefined symbols for architecture arm64:
"YGConfig::YGConfig(int (*)(YGConfig*, YGNode*, YGLogLevel, char const*, char*))", referenced from:
_YGConfigNew in libyoga.a(Yoga.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
react-native-ios
add a comment |
Hi I am trying to build a React Native project on iOS it has react-native-maps with it.
My podfile looks like this
# Uncomment the next line to define a global platform for your project
platform :ios, '9.0'
target 'APP_NAME' do
# Pods for APP_NAME
rn_path = '../node_modules/react-native'
rn_maps_path = '../node_modules/react-native-maps'
# See http://facebook.github.io/react-native/docs/integration-with-existing-apps.html#configuring-cocoapods-dependencies
pod 'yoga', path: "#{rn_path}/ReactCommon/yoga/yoga.podspec"
pod 'React', path: rn_path, subspecs: [
'Core',
'CxxBridge',
'DevSupport',
'RCTActionSheet',
'RCTAnimation',
'RCTGeolocation',
'RCTImage',
'RCTLinkingIOS',
'RCTNetwork',
'RCTSettings',
'RCTText',
'RCTVibration',
'RCTWebSocket',
]
# React Native third party dependencies podspecs
pod 'DoubleConversion', :podspec => "#{rn_path}/third-party-podspecs/DoubleConversion.podspec"
pod 'glog', :podspec => "#{rn_path}/third-party-podspecs/glog.podspec"
# pod 'GLog', :podspec => "#{rn_path}/third-party-podspecs/GLog.podspec"
pod 'Folly', :podspec => "#{rn_path}/third-party-podspecs/Folly.podspec"
# react-native-maps dependencies
pod 'react-native-maps', path: rn_maps_path
pod 'react-native-google-maps', path: rn_maps_path # Remove this line if you don't want to support GoogleMaps on iOS
# pod 'GoogleMaps' # Remove this line if you don't want to support GoogleMaps on iOS
# pod 'Google-Maps-iOS-Utils' # Remove this line if you don't want to support GoogleMaps on iOS
# Pods for APP_NAME
pod 'Firebase/Core', '~> 5.11.0'
pod 'Firebase/Firestore', '~> 5.11.0'
pod 'RNVectorIcons', :path => '../node_modules/react-native-vector-icons'
pod 'RNBackgroundFetch', :path => '../node_modules/react-native-background-fetch'
pod 'BVLinearGradient', :path => '../node_modules/react-native-linear-gradient'
pod 'Interactable', :path => '../node_modules/react-native-interactable'
target 'APP_NAME-tvOSTests' do
inherit! :search_paths
# Pods for testing
pod 'RNBackgroundFetch', :path => '../node_modules/react-native-background-fetch'
end
target 'APP_NAMETests' do
inherit! :search_paths
# Pods for testing
end
end
post_install do |installer|
installer.pods_project.targets.each do |target|
if target.name == 'react-native-google-maps'
target.build_configurations.each do |config|
config.build_settings['CLANG_ENABLE_MODULES'] = 'No'
end
end
if target.name == "React"
target.remove_from_project
end
end
end
target 'APP_NAME-tvOS' do
# Uncomment the next line if you're using Swift or would like to use dynamic frameworks
# use_frameworks!
# Pods for APP_NAME-tvOS
#target 'APP_NAME-tvOSTests' do
# inherit! :search_paths
# Pods for testing
# end
end
I am getting the below error each time.
I have tried all the solutions listed here
Undefined symbols for architecture arm64
But none of them is working for me.
Undefined symbols for architecture arm64:
"YGConfig::YGConfig(int (*)(YGConfig*, YGNode*, YGLogLevel, char const*, char*))", referenced from:
_YGConfigNew in libyoga.a(Yoga.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
react-native-ios
add a comment |
Hi I am trying to build a React Native project on iOS it has react-native-maps with it.
My podfile looks like this
# Uncomment the next line to define a global platform for your project
platform :ios, '9.0'
target 'APP_NAME' do
# Pods for APP_NAME
rn_path = '../node_modules/react-native'
rn_maps_path = '../node_modules/react-native-maps'
# See http://facebook.github.io/react-native/docs/integration-with-existing-apps.html#configuring-cocoapods-dependencies
pod 'yoga', path: "#{rn_path}/ReactCommon/yoga/yoga.podspec"
pod 'React', path: rn_path, subspecs: [
'Core',
'CxxBridge',
'DevSupport',
'RCTActionSheet',
'RCTAnimation',
'RCTGeolocation',
'RCTImage',
'RCTLinkingIOS',
'RCTNetwork',
'RCTSettings',
'RCTText',
'RCTVibration',
'RCTWebSocket',
]
# React Native third party dependencies podspecs
pod 'DoubleConversion', :podspec => "#{rn_path}/third-party-podspecs/DoubleConversion.podspec"
pod 'glog', :podspec => "#{rn_path}/third-party-podspecs/glog.podspec"
# pod 'GLog', :podspec => "#{rn_path}/third-party-podspecs/GLog.podspec"
pod 'Folly', :podspec => "#{rn_path}/third-party-podspecs/Folly.podspec"
# react-native-maps dependencies
pod 'react-native-maps', path: rn_maps_path
pod 'react-native-google-maps', path: rn_maps_path # Remove this line if you don't want to support GoogleMaps on iOS
# pod 'GoogleMaps' # Remove this line if you don't want to support GoogleMaps on iOS
# pod 'Google-Maps-iOS-Utils' # Remove this line if you don't want to support GoogleMaps on iOS
# Pods for APP_NAME
pod 'Firebase/Core', '~> 5.11.0'
pod 'Firebase/Firestore', '~> 5.11.0'
pod 'RNVectorIcons', :path => '../node_modules/react-native-vector-icons'
pod 'RNBackgroundFetch', :path => '../node_modules/react-native-background-fetch'
pod 'BVLinearGradient', :path => '../node_modules/react-native-linear-gradient'
pod 'Interactable', :path => '../node_modules/react-native-interactable'
target 'APP_NAME-tvOSTests' do
inherit! :search_paths
# Pods for testing
pod 'RNBackgroundFetch', :path => '../node_modules/react-native-background-fetch'
end
target 'APP_NAMETests' do
inherit! :search_paths
# Pods for testing
end
end
post_install do |installer|
installer.pods_project.targets.each do |target|
if target.name == 'react-native-google-maps'
target.build_configurations.each do |config|
config.build_settings['CLANG_ENABLE_MODULES'] = 'No'
end
end
if target.name == "React"
target.remove_from_project
end
end
end
target 'APP_NAME-tvOS' do
# Uncomment the next line if you're using Swift or would like to use dynamic frameworks
# use_frameworks!
# Pods for APP_NAME-tvOS
#target 'APP_NAME-tvOSTests' do
# inherit! :search_paths
# Pods for testing
# end
end
I am getting the below error each time.
I have tried all the solutions listed here
Undefined symbols for architecture arm64
But none of them is working for me.
Undefined symbols for architecture arm64:
"YGConfig::YGConfig(int (*)(YGConfig*, YGNode*, YGLogLevel, char const*, char*))", referenced from:
_YGConfigNew in libyoga.a(Yoga.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
react-native-ios
Hi I am trying to build a React Native project on iOS it has react-native-maps with it.
My podfile looks like this
# Uncomment the next line to define a global platform for your project
platform :ios, '9.0'
target 'APP_NAME' do
# Pods for APP_NAME
rn_path = '../node_modules/react-native'
rn_maps_path = '../node_modules/react-native-maps'
# See http://facebook.github.io/react-native/docs/integration-with-existing-apps.html#configuring-cocoapods-dependencies
pod 'yoga', path: "#{rn_path}/ReactCommon/yoga/yoga.podspec"
pod 'React', path: rn_path, subspecs: [
'Core',
'CxxBridge',
'DevSupport',
'RCTActionSheet',
'RCTAnimation',
'RCTGeolocation',
'RCTImage',
'RCTLinkingIOS',
'RCTNetwork',
'RCTSettings',
'RCTText',
'RCTVibration',
'RCTWebSocket',
]
# React Native third party dependencies podspecs
pod 'DoubleConversion', :podspec => "#{rn_path}/third-party-podspecs/DoubleConversion.podspec"
pod 'glog', :podspec => "#{rn_path}/third-party-podspecs/glog.podspec"
# pod 'GLog', :podspec => "#{rn_path}/third-party-podspecs/GLog.podspec"
pod 'Folly', :podspec => "#{rn_path}/third-party-podspecs/Folly.podspec"
# react-native-maps dependencies
pod 'react-native-maps', path: rn_maps_path
pod 'react-native-google-maps', path: rn_maps_path # Remove this line if you don't want to support GoogleMaps on iOS
# pod 'GoogleMaps' # Remove this line if you don't want to support GoogleMaps on iOS
# pod 'Google-Maps-iOS-Utils' # Remove this line if you don't want to support GoogleMaps on iOS
# Pods for APP_NAME
pod 'Firebase/Core', '~> 5.11.0'
pod 'Firebase/Firestore', '~> 5.11.0'
pod 'RNVectorIcons', :path => '../node_modules/react-native-vector-icons'
pod 'RNBackgroundFetch', :path => '../node_modules/react-native-background-fetch'
pod 'BVLinearGradient', :path => '../node_modules/react-native-linear-gradient'
pod 'Interactable', :path => '../node_modules/react-native-interactable'
target 'APP_NAME-tvOSTests' do
inherit! :search_paths
# Pods for testing
pod 'RNBackgroundFetch', :path => '../node_modules/react-native-background-fetch'
end
target 'APP_NAMETests' do
inherit! :search_paths
# Pods for testing
end
end
post_install do |installer|
installer.pods_project.targets.each do |target|
if target.name == 'react-native-google-maps'
target.build_configurations.each do |config|
config.build_settings['CLANG_ENABLE_MODULES'] = 'No'
end
end
if target.name == "React"
target.remove_from_project
end
end
end
target 'APP_NAME-tvOS' do
# Uncomment the next line if you're using Swift or would like to use dynamic frameworks
# use_frameworks!
# Pods for APP_NAME-tvOS
#target 'APP_NAME-tvOSTests' do
# inherit! :search_paths
# Pods for testing
# end
end
I am getting the below error each time.
I have tried all the solutions listed here
Undefined symbols for architecture arm64
But none of them is working for me.
Undefined symbols for architecture arm64:
"YGConfig::YGConfig(int (*)(YGConfig*, YGNode*, YGLogLevel, char const*, char*))", referenced from:
_YGConfigNew in libyoga.a(Yoga.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
react-native-ios
react-native-ios
edited Dec 3 '18 at 3:13
red-devil
asked Nov 25 '18 at 16:00
red-devilred-devil
77522
77522
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
I had similar errors when upgrading React Native to 0.58.6
To fix all the symbol not found errors I had to add/re-add all the libraries with problems in project target Linked frameworks and libraries in xCode:

I also noticed that for RN 0.58 there is no need to have any React or RN dependency in pod file.
More info about my pod file here:
https://stackoverflow.com/a/54999642/1979861
Also check a possible script issue here:
https://stackoverflow.com/a/48953119/1979861
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53469261%2freact-native-ios-build-failing-for-the-following-error-symbols-not-found-for%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
I had similar errors when upgrading React Native to 0.58.6
To fix all the symbol not found errors I had to add/re-add all the libraries with problems in project target Linked frameworks and libraries in xCode:

I also noticed that for RN 0.58 there is no need to have any React or RN dependency in pod file.
More info about my pod file here:
https://stackoverflow.com/a/54999642/1979861
Also check a possible script issue here:
https://stackoverflow.com/a/48953119/1979861
add a comment |
I had similar errors when upgrading React Native to 0.58.6
To fix all the symbol not found errors I had to add/re-add all the libraries with problems in project target Linked frameworks and libraries in xCode:

I also noticed that for RN 0.58 there is no need to have any React or RN dependency in pod file.
More info about my pod file here:
https://stackoverflow.com/a/54999642/1979861
Also check a possible script issue here:
https://stackoverflow.com/a/48953119/1979861
add a comment |
I had similar errors when upgrading React Native to 0.58.6
To fix all the symbol not found errors I had to add/re-add all the libraries with problems in project target Linked frameworks and libraries in xCode:

I also noticed that for RN 0.58 there is no need to have any React or RN dependency in pod file.
More info about my pod file here:
https://stackoverflow.com/a/54999642/1979861
Also check a possible script issue here:
https://stackoverflow.com/a/48953119/1979861
I had similar errors when upgrading React Native to 0.58.6
To fix all the symbol not found errors I had to add/re-add all the libraries with problems in project target Linked frameworks and libraries in xCode:

I also noticed that for RN 0.58 there is no need to have any React or RN dependency in pod file.
More info about my pod file here:
https://stackoverflow.com/a/54999642/1979861
Also check a possible script issue here:
https://stackoverflow.com/a/48953119/1979861
edited Mar 5 at 10:44
answered Mar 5 at 10:29
Florin DobreFlorin Dobre
4,20222645
4,20222645
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53469261%2freact-native-ios-build-failing-for-the-following-error-symbols-not-found-for%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown