question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Xcode build failed

See original GitHub issue

Describe the bug
I can run my app in debug mode on device and simulator with npx react-native run-ios. I can create archives of my app and send them in Test Flight and AppStore. I can build with detox-cli my debug and release mode iOS app. But xCode12 run on device or simulator build failed with that error:

Building for iOS Simulator, but linking in dylib built for iOS, file '/Users/maximchernyshov/Desktop/project/frontend/ios/Pods/Mapbox-iOS-SDK/dynamic/Mapbox.framework/Mapbox' for architecture arm64

To Reproduce
Build project with "@react-native-mapbox-gl/maps": "^8.2.0-beta1", in xCode on iPhone11, iOS 14.4

Additional Context npx react-native info

maximchernyshov@MacBook-Pro-Maxim frontend % npx react-native info
info Fetching system and libraries information...
System:
    OS: macOS 10.15.7
    CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
    Memory: 739.18 MB / 16.00 GB
    Shell: 5.7.1 - /bin/zsh
  Binaries:
    Node: 14.15.2 - /usr/local/bin/node
    Yarn: 1.22.10 - /usr/local/bin/yarn
    npm: 6.14.9 - /usr/local/bin/npm
    Watchman: 4.9.0 - /usr/local/bin/watchman
  Managers:
    CocoaPods: 1.10.0 - /usr/local/bin/pod
  SDKs:
    iOS SDK:
      Platforms: iOS 14.4, DriverKit 20.2, macOS 11.1, tvOS 14.3, watchOS 7.2
    Android SDK:
      API Levels: 28, 29, 30
      Build Tools: 28.0.3, 29.0.2, 30.0.2
      System Images: android-30 | Google APIs Intel x86 Atom
      Android NDK: Not Found
  IDEs:
    Android Studio: 4.1 AI-201.8743.12.41.6953283
    Xcode: 12.4/12D4e - /usr/bin/xcodebuild
  Languages:
    Java: 13.0.2 - /usr/bin/javac
    Python: 2.7.16 - /usr/bin/python
  npmPackages:
    @react-native-community/cli: Not Found
    react: 16.13.1 => 16.13.1 
    react-native: 0.63.3 => 0.63.3 
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ferdicuscommented, Apr 9, 2021

so all good, yes? closing this

0reactions
nowaycommented, Apr 10, 2021

You can encounter this error on both x86 and Apple Silicon. On x86 it’s solved with the EXCLUDE_ARCH build setting. On Apple Silicon, there’s still no fix.

Let’s keep this issue scoped to x86 and close it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Xcode: Build Failed, but no error messages - Stack Overflow
Build operation failed without specifying any errors. Individual build tasks may have failed for unknown reasons. One possible cause is if there ...
Read more >
Build Failed — but no reason! | Apple Developer Forums
Hi, I'm experiencing weird Xcode behavior. I'm getting "build failed" after some alterations to the code, but Xcode will NOT give me the...
Read more >
Oh dear! Build errors? - LoopDocs - GitHub Pages
Open your Loop project again in Xcode . In the main Xcode menu (grey menu bar at the very top of your Apple...
Read more >
xcode build fail in Xcode 14 · Issue #20701 · fastlane ... - GitHub
This appears to be an issue with Xcode 14, reported here. The build log continues after the above and the build succeeds. Following...
Read more >
Xcode 7.1 Build failed with cocoapods : TW-44040
Xcode 7.1 Build failed with cocoapods · 1) Check in generated .xcworkspace and Podfile.lock files to version control · 2) Change the target...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found