I am getting the below error when I build my iOS project in Xcode 11.0 for Simulator 11.
CompileSwiftSources normal i386 com.apple.xcode.tools.swift.compiler
How can I resolve it?
Related
This is the error I got:
The following build commands failed:
CompileC /.../Library/Developer/Xcode/DerivedData/BarberApp-beyxycoeyxvbafccvpatsjhfeicq/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/React-logger.build/Objects-normal/arm64/react_native_log.o /Users/orelbarclay/Documents/Projects/barber-app/node_modules/react-native/ReactCommon/logger/react_native_log.cpp normal arm64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'React-logger' from project 'Pods')
(1 failure)
Error:
The following build commands failed:
CompileC /Path/ios/build/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RCT-Folly.build/Objects-normal/i386/F14Table.o /Path/ios/Pods/RCT-Folly/folly/container/detail/F14Table.cpp normal i386 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'RCT-Folly' from project 'Pods')
(1 failure)
Pre-Condition:
Follow the setup detox latest version
detox build --configuration iOS file.ts
-Environment (please complete the following information):
Detox: ^19.6.5
React Native: 0.67.4
Node:v16.16.0
Device: Iphone 13 simulator
Xcode: 13.4.1 (13F100)
iOS: 15.0
macOS: Monterey
jest: 28.1.2
Had to add "-UseModernBuildSystem=YES -arch x86_64" to the build settings step to resolve.
I am facing the above issue with New Mac M1 with Xcode 13.1.
I am running fastlane and getting this error
** TEST BUILD FAILED **
[21:03:58]: ▸ The following build commands failed:
[21:03:58]: ▸ MergeSwiftModule normal x86_64
[21:03:58]: ▸ CompileSwiftSources normal x86_64 com.apple.xcode.tools.swift.compiler
[21:03:58]: ▸ (2 failures)
❌ error: merge-module command failed with exit code 1 (use -v to see invocation)
Select your project in Xcode, and go to "Build Settings". Scroll down until you see "Search Paths", and finally, "Library Search Paths". Replace "$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)" with "$(SDKROOT)/usr/lib/swift".
I am developing a package that supports minimum iOS 14. Package.swift
platforms: [.iOS(.v14), .macOS(.v10_15)]
But the dependencies Swinject and CocoaLumberjack have iOS 9 as the minimum version.
let package = Package(
name: "CocoaLumberjack",
platforms: [
.iOS(.v9),
.macOS(.v10_10),
.watchOS(.v3),
.tvOS(.v9),
],
When I am trying to build xcframework using swift create-xcframework I get an error
** ARCHIVE FAILED **
The following build commands failed:
CompileSwiftSources normal armv7 com.apple.xcode.tools.swift.compiler (in target 'Swinject' from project 'CompanyKit')
CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler (in target 'Swinject' from project 'CompanyKit')
CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler (in target 'SwiftMQTT' from project 'CompanyKit')
Ld /Users/lirisoft/Library/Developer/Xcode/DerivedData/CompanyKit-czrcefyhlqzdlifiutaqrsmtkhhw/Build/Intermediates.noindex/ArchiveIntermediates/CompanyKit/IntermediateBuildFilesPath/CompanyKit.build/Release-iphoneos/CocoaLumberjack.build/Objects-normal/armv7/Binary/CocoaLumberjack normal armv7 (in target 'CocoaLumberjack' from project 'CompanyKit')
(4 failures)
Using Xcode 13.2.1
I want to restrict archiving to iOS 14 and macOS 10.15
I have installed cordova-plugin-geofence in my project but when i try to build it gives following errors :-
The following build commands failed:
CompileSwift normal arm64 /Users/itr/Desktop/richboy/platforms/ios/OnTheList/Plugins/cordova-plugin-geofence/GeofencePlugin.swift
CompileSwift normal arm64 /Users/itr/Desktop/richboy/platforms/ios/OnTheList/Plugins/cordova-plugin-geofence/SwiftData.swift
CompileSwift normal arm64 /Users/itr/Desktop/richboy/platforms/ios/OnTheList/Plugins/cordova-plugin-geofence/SwiftyJson.swift
CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler
(4 failures)
Error: Error code 65 for command: xcodebuild with args: -xcconfig,/Users/itr/Desktop/richboy/platforms/ios/cordova/build-debug.xcconfig,-workspace,OnTheList.xcworkspace,-scheme,OnTheList,-configuration,Debug,-destination,generic/platform=iOS,-archivePath,OnTheList.xcarchive,archive,CONFIGURATION_BUILD_DIR=/Users/itr/Desktop/richboy/platforms/ios/build/device,SHARED_PRECOMPS_DIR=/Users/itr/Desktop/richboy/platforms/ios/build/sharedpch
How to resolve these errors ?
This solution work for me
Go to your project->platforms->ios->projectName(folder)->plugins->cordova-plugin-geofence
You will find four files.
Replace this file with this file content https://github.com/ypelud/cordova-plugin-geofence/tree/d2e1f22340ac2cd07559598fd290df462e75055d/src/ios