Post

Replies

Boosts

Views

Activity

Build failed CompileSwiftSources normal x86_64
Description I am trying to start up a react native ios app from terminal with: npx react-native run-ios --configuration Debug --scheme Development I then get the error: ** BUILD FAILED ** The following build commands failed: CompileSwiftSources normal x86_64 com.apple.xcode.tools.swift.compiler MergeSwiftModule normal x86_64 /Users/Library/Developer/Xcode/DerivedData/frnjcdnxmbqgcnhkwpisddivymns/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/lottie-react-native.build/Objects-normal/x86_64/lottie_react_native.swiftmodule (2 failures) I expect the Xcode simulator to startup and run the ios app but the build fails. npm: '6.14.11', ares: '1.16.1', brotli: '1.0.9', cldr: '37.0', icu: '67.1', llhttp: '2.1.3', modules: '83', napi: '7', nghttp2: '1.41.0', node: '14.16.0', openssl: '1.1.1j', tz: '2020a', unicode: '13.0', uv: '1.40.0', v8: '8.4.371.19-node.18', zlib: '1.2.11' lottie-ios: '3.1.8', lottie-react-native: '3.5.0' react-native: '0.64.2' Xcode: '12.5' Macbook pro 2019 2.3Ghz 8-Core Intel Core i9 macOS Big Sur v11.4
2
0
3.1k
Jun ’21
React native build failure
I have a react native app that when Run from XCode it works as expected (builds and runs on a simulator). But when I try run it from my terminal with npx react-native run-ios I get the error: error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65. To debug build logs further, consider building your app with Xcode.app, by opening foo.xcworkspace. Command line invocation: /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -workspace foo.xcworkspace -configuration Debug -scheme foo -destination id=FEB37 User defaults from command line: IDEPackageSupportUseBuiltinSCM = YES xcodebuild: error: The workspace named "foo" does not contain a scheme named "foo". The "-list" option can be used to find the names of the schemes in the workspace. It might have something to do with my schemes here When I manage my schemes in XCode I do NOT see scheme 'foo'. It is a generic app so it uses scheme 'bar' which is in the XCode manage gui. I've also tried npx react-native run-ios --configuration Debug --scheme Development and get a very large logout with it ending in: ** BUILD FAILED ** The following build commands failed: MergeSwiftModule normal x86_64 CompileSwiftSources normal x86_64 com.apple.xcode.tools.swift.compiler If I downgrade XCode from 12.5 to 12.0.1 it works as expected. But I would like to use the latest XCode. If I run react-native info info Fetching system and libraries information... (node:11609) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency (Use `node --trace-warnings ...` to show where the warning was created) System: OS: macOS 11.4 CPU: (16) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz Memory: 905.50 MB / 16.00 GB Shell: 5.8 - /bin/zsh Binaries: Node: 14.16.0 - ~/.nvm/versions/node/v14.16.0/bin/node Yarn: 1.22.4 - /usr/local/bin/yarn npm: 6.14.11 - ~/.nvm/versions/node/v14.16.0/bin/npm Watchman: 4.9.0 - /usr/local/bin/watchman Managers: CocoaPods: 1.10.1 - /usr/local/bin/pod SDKs: iOS SDK: Platforms: iOS 14.5, DriverKit 20.4, macOS 11.3, tvOS 14.5, watchOS 7.4 Android SDK: API Levels: 28, 29, 30 Build Tools: 29.0.2, 30.0.3, 31.0.0 System Images: android-28 | Google Play Intel x86 Atom, android-29 | Intel x86 Atom_64, android-30 | Google APIs Intel x86 Atom Android NDK: Not Found IDEs: Android Studio: 4.2 AI-202.7660.26.42.7351085 Xcode: 12.5/12E262 - /usr/bin/xcodebuild Languages: Java: 15.0.2 - /usr/bin/javac npmPackages: @react-native-community/cli: Not Found react: 17.0.2 => 17.0.2 react-native: 0.64.0 => 0.64.0 react-native-macos: Not Found npmGlobalPackages: *react-native*: Not Found I've tried restarting my mac... Do I have to wait for dependencies to be updated? Here is the Podfile require_relative '../node_modules/react-native/scripts/react_native_pods' require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules' platform :ios, '10.0' target 'vicinity' do config = use_native_modules! use_react_native!( :path => config[:reactNativePath], # to enable hermes on iOS, change `false` to `true` and then install pods :hermes_enabled => false ) end post_install do |installer| react_native_post_install(installer) end I have also tried to clean and rerun the start script. Any help in getting this to build in terminal would be great.
2
0
7.8k
Jun ’21