React Native build fails on run-ios - xcode

I've been unable to run my React Native project since Xcode updated to 12.5. I have a feeling the problem is with Flipper, but when I comment out Flipper from my Podfile, I get similar errors for other modules. Here is the error I get with Flipper installed:
** BUILD FAILED **
The following build commands failed:
CompileC /Users/mohammedibrahim/Library/Developer/Xcode/DerivedData/DinDin-cpajpwxpvpxihbgmxeemayoewtno/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Flipper.build/Objects-normal/x86_64/FlipperRSocketResponder.o /Users/mohammedibrahim/Documents/code/dindin/ios/Pods/Flipper/xplat/Flipper/FlipperRSocketResponder.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)

Related

Library not found for -lAliyunOSSiOS when build in Xcode 13

The React Native 0.66.3 app on macOS Big Sur started to throw below when build in Xcode 13 yesterday without change I am aware of. The package is in app's package.json. Tried to yarn add and pod install a few times and the error remains.
Here is the module in package.json:
"aliyun-oss-react-native": "^1.0.0-alpha.7",
The module is under project's node-modules. Here is the build error in Xcode:
ld: library not found for -lAliyunOSSiOS
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Here is the module files listed under iOS of aliyun-oss-react-native :

React Native IOS build failed, linker command failed with exit code 1

I'm using Xcode 12.4 on Catalina 10.15.7 intel based chip. I created a sample react native project with this 'https://reactnative.dev/docs/environment-setup' and it build and ran perfectly.
Now after further working on the project I installed react native navigation and stack navigator and styled components and vector icon dependencies. Now I run into this issue. Plz help me to resolve this. Thanks.
error on Xcode build
ld: warning: directory not found for option '-L-L/Users/ahyanawaz/Library/Developer/Xcode/DerivedData/Store-bekhqxqflgsqtyheijdxkrbwrksk/Build/Products/Debug-iphonesimulator/CocoaAsyncSocket'
ld: library not found for -lCocoaAsyncSocket
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Maybe try npm install or yarn then cd ios && pod install

Nativescript Sidekick iOS build fails on windows

I have an NS Core 6.2 app which builds correctly for Android, but fails for iOS on my Windows 10 machine when using Sidekick. The same app builds correctly on my mac machine.
Here is the error:
[20-02-25 08:42:40.238] Build failed. Build failed. Reason is: 'Build failed with error code 2'. Additional information: [00:00:35.043] [WARN] ** ARCHIVE FAILED **
The following build commands failed:
[00:00:35.045] [WARN] CompileC /tmp/builds/_/9207ad242e18a06d9987f7f799fb7f3cb720b864/6.2.2/6.2.0/tkmktmobileapp/platforms/ios/DerivedData/tkmktmobileapp/Build/Intermediates.noindex/ArchiveIntermediates/tkmktmobileapp/IntermediateBuildFilesPath/Pods.build/Debug-iphoneos/MBProgressHUD.build/Objects-normal/armv7/MBProgressHUD.o /tmp/builds/_/9207ad242e18a06d9987f7f799fb7f3cb720b864/6.2.2/6.2.0/tkmktmobileapp/platforms/ios/Pods/MBProgressHUD/MBProgressHUD.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
CompileC /tmp/builds/_/9207ad242e18a06d9987f7f799fb7f3cb720b864/6.2.2/6.2.0/tkmktmobileapp/platforms/ios/DerivedData/tkmktmobileapp/Build/Intermediates.noindex/ArchiveIntermediates/tkmktmobileapp/IntermediateBuildFilesPath/Pods.build/Debug-iphoneos/MBProgressHUD.build/Objects-normal/arm64/MBProgressHUD.o /tmp/builds/_/9207ad242e18a06d9987f7f799fb7f3cb720b864/6.2.2/6.2.0/tkmktmobileapp/platforms/ios/Pods/MBProgressHUD/MBProgressHUD.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(2 failures)
[00:00:35.371] [ERROR] ** ARCHIVE FAILED **
The following build commands failed:
CompileC /tmp/builds/_/9207ad242e18a06d9987f7f799fb7f3cb720b864/6.2.2/6.2.0/tkmktmobileapp/platforms/ios/DerivedData/tkmktmobileapp/Build/Intermediates.noindex/ArchiveIntermediates/tkmktmobileapp/IntermediateBuildFilesPath/Pods.build/Debug-iphoneos/MBProgressHUD.build/Objects-normal/armv7/MBProgressHUD.o /tmp/builds/_/9207ad242e18a06d9987f7f799fb7f3cb720b864/6.2.2/6.2.0/tkmktmobileapp/platforms/ios/Pods/MBProgressHUD/MBProgressHUD.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
CompileC /tmp/builds/_/9207ad242e18a06d9987f7f799fb7f3cb720b864/6.2.2/6.2.0/tkmktmobileapp/platforms/ios/DerivedData/tkmktmobileapp/Build/Intermediates.noindex/ArchiveIntermediates/tkmktmobileapp/IntermediateBuildFilesPath/Pods.build/Debug-iphoneos/MBProgressHUD.build/Objects-normal/arm64/MBProgressHUD.o /tmp/builds/_/9207ad242e18a06d9987f7f799fb7f3cb720b864/6.2.2/6.2.0/tkmktmobileapp/platforms/ios/Pods/MBProgressHUD/MBProgressHUD.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(2 failures)
'Build failed with error code 2'.
I am not sure how to proceed from here. Any ideas?
Thank you.

Building Alamofire 1.3.1 using Carthage fails

I have been facing an issue that fails to build Alamofire using Carthage.
My environment is as follows :
OSX 10.10.5
Xcode 6.4
Also 7.0 and 7.1 are already installed.
Carthage 0.9.3
Trying to install Alamofire 1.3.1 (latest Swift 1.2 release)
I tried the command below then error occurs.
$ echo 'github "Alamofire/Alamofire" "1.3.1"' > Cartfile ; carthage update --platform ios
*** Cloning Alamofire
*** Checking out Alamofire at "1.3.1"
*** xcodebuild output can be found in /var/folders/ch/jcgf09f15hl391jn849d5yr80000gn/T/carthage-xcodebuild.ZM1b0b.log
*** Building scheme "Alamofire iOS" in Alamofire.xcworkspace
** BUILD FAILED **
The following build commands failed:
Ld /Users/username/Library/Developer/Xcode/DerivedData/Alamofire-fmnpbxqgrcncdhbtipavvywlxagy/Build/Intermediates/Alamofire.build/Release-iphoneos/Alamofire\ iOS.build/Objects-normal/arm64/Alamofire normal arm64
(1 failure)
clang: error: linker command failed with exit code 1 (use -v to see invocation)
A shell task failed with exit code 65:
** BUILD FAILED **
The following build commands failed:
Ld /Users/username/Library/Developer/Xcode/DerivedData/Alamofire-fmnpbxqgrcncdhbtipavvywlxagy/Build/Intermediates/Alamofire.build/Release-iphoneos/Alamofire\ iOS.build/Objects-normal/arm64/Alamofire normal arm64
(1 failure)
Then I tried to build using Xcode.
Open Alamofire.xcworkspace and hit Cmd+B then fails with error below :
Xcode error image
I have never seen the warning Unable to find swiftCore; please set SWIFT_LIBRARY_PATH (currentry '') to the folder containing swiftCore
I think that this warning relates to the issue, but I don't know how to solve this one...
Are there any solutions?

CocoaPods not installing Alamofire in Swift Parse Chat App

I am trying to compile and run the following application (Swift Chat App using Alamofire).
https://github.com/huyouare/SwiftParseChat
I am using ruby-2.0.0 , cocoapods 0.37.1, xcode 6.3, Alamofire 1.2.0
I am installing it using the normal <pod install> command. No errors or warnings during the process.
However, when compiling, I get:
No such Module 'Alamofire'
If I install Alamofire manually, however, when compiling I get an Apple Match-O Linker Error :
ld: warning: directory not found for option '-F/Users/cristian/Library/Developer/Xcode/DerivedData/SwiftParseChat-btvjczpwjlekftetblbfrbposakh/Build/Products/Debug-iphoneos/Pods'
ld: framework not found Pods
clang: error: linker command failed with exit code 1 (use -v to see invocation)
What is behind this??
Thanks !
If everything is setup correctly, errors such as
No such Module 'Alamofire'
occur when you build your project from .xcodeproj.
By default you need to build project integrating CocoaPods from .xcworkspace.

Resources