-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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
clang: error: linker command failed with exit code 1 when archiving #23335
Comments
I have the same issue try to run my react native project from Xcode or console. |
This can happen if the React project dependency is added in both the Podfile and through a manual link on the xcodeproj file. Could you post your Podfile and |
+1 here, the issue only exists with cocoapods 1.6.0 rc1 or newer. |
+1 here with cocoapods 1.6.0 |
On my side, i was able to fix this bug by removing the React and relatives pods from the podfile. Indeed, seems that linking it with pod generates and manual link, as @bartolkaruza said. On my case, only RNFirebase encourages to use pod. On the contrary only linking is necessary |
Any updates here? the issue starts with cocoapods since 1.6.0 rc 1 and still remains with cocoapods 1.7.0 beta 2. Or could someone identify this belongs to React Native or Cocoapods? |
@xiao99xiao did the workaround mentioned work for you? |
@bartolkaruza You mean giving up using Cocoapods to integrate React? Unfortunately it's not possible for our project. I believe there are a number of projects like ours that begins as a native app and got React Native added in the half way. Cocoapods is the only possible way to make it. So the workaround doesn't work for us :( |
I'm sorry, I misunderstood @alvessteve workaround, I didn't mean give up on cocoapods. Cocoapods will become the recommended approach starting from RN 0.60.0 and people are working on making the Cocoapods integration first class at the moment. I would love to understand the root cause(s) of this issue, but it's just not appearing anymore for me. If it helps, I'm sharing my Podfile and Library link section for reference.
A first notable difference is that there is no libReact.a in the Linked Frameworks and Libraries section. |
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions. |
This issue is resolved for me since Cocoapods 1.7.0 |
upgraded cocoapods to 1.7.5 and still having this issue. impossible to find the cause from the abundant useless output and the one line that tells you nothing! this build system is a joke. |
I did following steps helped me to resolve the issue. |
Hi! Is there anybody find answer of this problem?
Podfile
|
I got the same error, I can run with run-react native, I can Archive on Xcode but I cannot build a on device with Xcode I get the |
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions. |
Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information. |
🐛 Bug Report
When archiving a build for arm7 architectures, I ran into a linker exception.
However, when running on a simulator It works well. Moreover, i already deleted all caches and deintegrated my pod to install it again.
To Reproduce
Just clicking on archiving on xcode :(
Code Example
Environment
React Native Environment Info:
System:
OS: macOS 10.14.3
CPU: x64 Intel(R) Core(TM) i5-8259U CPU @ 2.30GHz
Memory: 35.58 MB / 16.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 11.9.0 - /usr/local/bin/node
Yarn: 1.13.0 - /usr/local/bin/yarn
npm: 6.5.0 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 12.1, macOS 10.14, tvOS 12.1, watchOS 5.1
IDEs:
Android Studio: 3.3 AI-182.5107.16.33.5199772
Xcode: 10.1/10B61 - /usr/bin/xcodebuild
npmPackages:
react: ^16.8.1 => 16.8.1
react-native: ^0.58.4 => 0.58.4
npmGlobalPackages:
react-native-cli: 2.0.1
react-native-git-upgrade: 0.2.7
The text was updated successfully, but these errors were encountered: