Nativescript Sidekick iOS build fails on windows - nativescript

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.

Related

Expo Build in XCODE gives error: CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler

I am trying to run an expo build so that I can use it in the XCode simulator.
I am running on a Macbook M1 chip.
I have simply opened the Expo folder from xCode, then try to click on the run button and I get the following error:
Build fails with the below errors
The following build commands failed:
CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler (in target 'lottie-react-native' from project 'Pods')
CompileSwiftSources normal x86_64 com.apple.xcode.tools.swift.compiler (in target 'ExpoModulesCore' from project 'Pods')
CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler (in target 'ExpoModulesCore' from project 'Pods')
CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler (in target 'expo-dev-menu' from project 'Pods')
CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler (in target 'expo-dev-launcher' from project 'Pods')
PhaseScriptExecution [CP-User]\ Generate\ Specs /Users/username/Library/Developer/Xcode/DerivedData/appname/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FBReactNativeSpec.build/Script-84523FB004E42E06A56C6DE861F4376B.sh (in target 'FBReactNativeSpec' from project 'Pods')
Tried below resolution options but doesn't seem to work
Re-installation of pod file and its packages,
Excluding the arm64 arch from project in xcode
Changing the arch to Standard architectures (including 64-bit) (armv7, armv7s, arm64)
pod update, pod disintegrate, pod install
open Xcode via rosetta, change the arch in pod file in code to arm64
Versions:
npm version - 6.14.17
node version - v14.19.2
expo version -5.4.3
react-native version- 7.0.3

React Native build fails on run-ios

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)

impossible to build flutter on device or simulator in my mac

after two week... I successed upload xcode and catalina OS , zsh ... all could be good but have always error and can't launch my app on my physical device or simulator. Always error after Xcode build.
Things interesting, I remove App_review package from pubspec.yaml but I have always error with it...
If I launch flutter example it works, but If I use certain package like admob who worked before, or app review I have this errors. I can remove app_review package but remove ad mob no...
Edit: I remove all packages who show error, but have always this error
Here is my physical device error :
Xcode's output:
↳
ld: framework not found FBLPromises
clang: error: linker command failed with exit code 1 (use -v to see invocation)
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description
Here is the error when I use simulator :
Xcode's output:
↳
ld: framework not found FBLPromises
clang: error: linker command failed with exit code 1 (use -v to see invocation)
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description
warning: Mapping architecture armv7 to i386. Ensure that this target's Architectures and Valid Architectures build settings are configured correctly for the iOS Simulator platform. (in target 'in_app_purchase' from project 'Pods')
warning: Mapping architecture arm64 to x86_64. Ensure that this target's Architectures and Valid Architectures build settings are configured correctly for the iOS Simulator platform. (in target 'in_app_purchase' from project 'Pods')
warning: Mapping architecture arm64 to x86_64. Ensure that this target's Architectures and Valid Architectures build settings are configured correctly for the iOS Simulator platform. (in target 'Runner' from project 'Runner')
warning: Mapping architecture armv7s to i386. Ensure that this target's Architectures and Valid Architectures build settings are configured correctly for the iOS Simulator platform. (in target 'Runner' from project 'Runner')
warning: Mapping architecture armv7 to i386. Ensure that this target's Architectures and Valid Architectures build settings are configured correctly for the iOS Simulator platform. (in target 'Runner' from project 'Runner')
Open Runner.xcodeproj with xCode in ios folder, choose File menu, then select "Project Settings...". In Build System, choose Legacy Build System and run again.
I have select legacy build system
, now I have this last error
=== BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Debug ===
ld: framework not found FBLPromises
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Please see this thread and ensure that you are not accidentally overriding the VALID_ARCHS build setting: What does warning "Mapping architecture arm64 to x86_64" mean?

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?

build iphonesimulator6.0 target faild using command xcodebuild but succeed using Product-->Build in xcode UI

Error information:
clang: error: invalid architecture 'arm' for deployment target '-mios-simulator-version-min=4.3'
What's the different between command xcodebuild and Product-->Build?

Resources