I've been installing dependencies using pods, but now i've tried carthage first time.
I've opened an issue on git also, but looking for a quick help.
Here's the github link of issue:
https://github.com/Alamofire/Alamofire/issues/1765
Short Desc about Issue:
The following build commands failed:
CompileSwift normal x86_64
CompileSwiftSources normal x86_64 com.apple.xcode.tools.swift.compiler
(2 failures)
My Xcode version is 8.0,
git version 2.8.4 (Apple Git-73),
and carthage version 0.18.1: Redundant Redundancy
Any help would be highly appricaited
I had 3 versions of xcode installed 7, 8.0 and 8.1, I was trying on xcode 8 but I ended up using xcode 8.1 and changing the command line tool of xcode from preferences to xcode 8.1
hope this helps anyone else :)
Related
I am trying to build a react native project in xcode to ipad simulator
but I get this error in xcode
remark: Incremental compilation has been disabled: it is not compatible with whole module optimization
Command CompileSwiftSources failed with a nonzero exit code
I have seen this thread
remark: Incremental compilation has been disabled: it is not compatible with whole module optimization
Have tried everything but nothing is making any difference
The build settings were already set to incremental
I dont see anything useful under Compile swift source files above the error...
It starts out as below, (there is more to it but nothing that is very human readable)
CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler (in target 'ExpoModulesCore' from project 'Pods')
cd /Users/alex/Documents/Projects/AtlasProject/src/frontend/packages/mobile/ios/Pods
export DEVELOPER_DIR\=/Applications/Xcode.app/Contents/Developer
export SDKROOT\=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc -incremental -module-name ExpoModulesCore -Onone -whole-module-optimization
If I run yarn ios which I believe runs react-native run-ios I get this error
We ran "xcodebuild" command but it exited with error code 70
I am using:
macOs 12.4
Chip Apple M1 Pro
Xcode 13.4
react-native: 0.67.1
pod 1.11.3
node 15.6.0
ruby 2.6.8p205
I tried downgrading xcode previously which did not help,
And a co worker of mine is capable of creating ipad builds on his m1 mac with xcode 13.4,
unfortunately they do not know why it isnt working on my mac
I am also getting additional errors relating to react-native-webrtc, all of which are basically just file not found
someone has fixed or saw this issue?
I'm using last version of (react-native) and also macOS Catalina.
I did install react-native-webview by yarn and after into the (./ios) folder I had install the pods.
So build failed, after react-native run-ios.
The following build commands failed:
CompileC /Users/mymac/Library/Developer/Xcode/DerivedData/Project-cnketoyhxyitfqbbcdkdvhpuajey/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/react-native-webview.build/Objects-normal/x86_64/RNCWebView.o /Users/mymac/Desktop/React/project/node_modules/react-native-webview/apple/RNCWebView.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
Are you running the latest version of Xcode?
See react-native-webview issue #1399
I'm using:
react-native-cli: 2.0.1
react-native: 0.62.2
Xcode: 11.3.1
Creating a react-native project (react-native init GetAway) and starting it with
npx react-native run-ios throws an build error:
The following build commands failed:
CompileSwiftSources normal x86_64 com.apple.xcode.tools.swift.compiler
CompileSwift normal x86_64 /Users/sercan/Desktop/Arbeit/Urlaub/rescue/GetAway/ios/Pods/YogaKit/YogaKit/Source/YGLayoutExtensions.swift
(2 failures)
I have no clue, why it comes to an build error, to a new created project.
If you have any ideas to solve this problem, please let me know.
Thanks in Advance
Edit: Link for full error message: https://docs.google.com/document/d/1o6tj9OrWmH-OZ5rCkYxhQTi-RYH36S5u36zpmBHHY3E/edit?usp=sharing
In my macOS system, this build error was resolved by restarting the computer. The issue has been reported at https://github.com/facebook/react-native/issues/28777, where I also found this workaround.
I resolved this by uninstalling the globally installed react-native-cli.
The react-native environment setup docs also state this.
React Native Environment Setup Docs
Screenshot from the environment setup docs
i fixed something similar by updating my xcode to 13 which requires that you update your macos to 11
I have a NativeScript project that I am running on my desktop. When I clone it to my laptop, I get the following error message after I run tns run ios --emulator:
Build settings from command line:
ARCHS = i386 x86_64
CODE_SIGN_IDENTITY =
CONFIGURATION_BUILD_DIR = /mypath/exampleproject/platforms/ios/build/emulator
ONLY_ACTIVE_ARCH = NO
SDKROOT = iphonesimulator10.3
SHARED_PRECOMPS_DIR = /mypath/exampleproject/platforms/ios/build/sharedpch
VALID_ARCHS = i386 x86_64
xcodebuild: error: The workspace named "exampleproject" does not contain a scheme named "exampleproject". The "-list" option can be used to find the names of the schemes in the workspace.
Command xcodebuild failed with exit code 65
Could it be a naming thing? I started out naming the project one thing, then changed it, but changed back to the original because of the issues. I cloned it onto my Desktop into a different folder, and ran tns run ios --emulator and got the same issue, so it's definitely not a hardware problem.
I've been reviewing answers to the following problem here, but it seems like the solution was already integrated into the version of NativeScript that I am running.
Laptop:
NativeScript version 2.5.4
OS Version Sierra 10.12.1
Ok, so it's the simplest solution in the world:
The project was originally named Exampleproject (first letter capitalized), I pushed the code (so the project on git is exampleproject, and when I cloned it the resulting folder is exampleproject, so instead I just have to clone it into Exampleproject:
git clone https://example#bitbucket.org/myprojects/exampleproject.git Exampleproject
For reference, I'm building from the VS Code terminal in a NativeScript 6.5 project and using the command "tns run ios --force".
I got this same error, when yesterday it built fine but today it errors. Then I decided to open Xcode and realized it wanted to update, and that's due to my Mac updating over night. Once I updated Xcode the build and run worked fine.
Fissh
I installed FMDB using pods because I need to access a local sqlite database. I liked the library, but unfortunately, if I put a deployment target under iOS 8, I get this error at build
ld: embedded dylibs/frameworks are only supported on iOS 8.0 and later (#rpath/FMDB.framework/FMDB) for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
There is a way to resolve this?
Carthage support for frameworks was added in 2.6. For now, you should be able to specify 2.5.2 2.5 in the Podfile and you should be able to Support iOS 7. I've posted an issue on github on this and we'll see if the Cocoapods configuration can be fixed.