I'm trying to build the iOS version of my Cordova app.
I'm getting this error on Xcode for CordovaLib. i tried with different versions of cordova-ios.
This is the error log:
Apple Mach-O Librarian (libtool) Error Group
fatal error:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool:
can't open file list file:
/Users/XXX/Downloads/Staging/platforms/ios/DerivedData/APP_NAME
(No such file or directory)
Libtool
/Users/XXX/Downloads/Staging/platforms/ios/DerivedData/APP_NAME/Build/Products/Debug-iphonesimulator/libCordova.a normal
x86_64
Try with legacy-build mode.
cordova build ios --buildFlag="-UseModernBuildSystem=0"
Related
I have added a custom plugin to Cordova app. And the custom plugin uses a third party framework.
When i build it through cordova command line the build fails with the error
clang: error: linker command failed with exit code 1:Undefined symbols for architecture x86_64
But if i open xcode project now and build the app its working fine and that framework is alos added in the embedded bianries in Xcode. But i want to buil the app from cordova command line as it needs to be automated as a part of build process.
Error is “clang: error: linker command failed with exit code 1“
You can add the deployment-target preference to your project's config.xml. For example, this would set the deployment target to iOS 10.0.
<preference name="deployment-target" value="11.0" />
I have a flutter application using Firebase / Firestore. In my flutter application flutter build iOS is working but in Xcode the Archive and building in General fails with
Command PhaseScriptExecution failed with a nonzero exit code
I already tried:
keychain access -> right click on login -> lock & unlock again -> clear Xcode project and make build again.
also pod deintegrate etc. is not working
But it is not working. Also tried setting up new project but after firestore integration it fails.
The domain/default pair of (/Users/username/Library/Developer/Xcode/DerivedData/Runner-bhnxzkbbayxxhjauqwbcxaiedcis/Build/Products/Debug-iphonesimulator/Runner.app/Frameworks/App.framework/flutter_assets/ios/Flutter/App.framework/Info.plist, CFBundleExecutable) does not exist
fatal error: lipo: can't map input file: /Users/username/Library/Developer/Xcode/DerivedData/Runner-bhnxzkbbayxxhjauqwbcxaiedcis/Build/Products/Debug-iphonesimulator/Runner.app/Frameworks/App.framework/flutter_assets/ios/Flutter/App.framework/ (Invalid argument)
fatal error: lipo: can't map input file: /Users/username/Library/Developer/Xcode/DerivedData/Runner-bhnxzkbbayxxhjauqwbcxaiedcis/Build/Products/Debug-iphonesimulator/Runner.app/Frameworks/App.framework/flutter_assets/ios/Flutter/App.framework/ (Invalid argument)
Failed to extract x86_64 for /Users/username/Library/Developer/Xcode/DerivedData/Runner-bhnxzkbbayxxhjauqwbcxaiedcis/Build/Products/Debug-iphonesimulator/Runner.app/Frameworks/App.framework/flutter_assets/ios/Flutter/App.framework/. Running lipo -info:
fatal error: lipo: can't map input file: /Users/username/Library/Developer/Xcode/DerivedData/Runner-bhnxzkbbayxxhjauqwbcxaiedcis/Build/Products/Debug-iphonesimulator/Runner.app/Frameworks/App.framework/flutter_assets/ios/Flutter/App.framework/ (Invalid argument)
Command PhaseScriptExecution failed with a nonzero exit code
ok so in my case the problem occurred after a flutter upgrade. My app is on the stable channel and I updated it to the current stable version.
before that it was running on 1.17.5 there everything was working fine, the error occurred on 1.20.0
so the solution was a downgrade back to 1.17.5
In my case it worked when set Excluded Architectures -> arm64
I've created an Ionic 4 app with Facebook login. It works great on Android but when I attempt to build on the iOS platform I get the following error:
x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (1
failure) xcodebuild: Command failed with exit code 65 [ERROR] An error
occurred while running subprocess cordova.
I get that error with
sudo ionic cordova build ios -allowProvisioningUpdates
If I then open the app in Xcode and attempt to build I get the following error:
/Users/anonymous/Development/Mundo1.5/platforms/ios/Buddy
Pass/Plugins/cordova-plugin-facebook4/FacebookConnectPlugin.h:13:9:
'FBSDKCoreKit/FBSDKCoreKit.h' file not found
I encountered the same problem.
Version information: node -v : v7.10.0 npm -v : 4.6.1 cordova -v :7.0.1 angular/cli: 1.0.4 ionic -v : 3.3.0
The error message:
cordova compile ios
✖ Running command - failed!
[ERROR] Cordova encountered an error.
You may get more insight by running the Cordova command above directly.
[ERROR] An error occurred while running cordova compile ios (exit code 1):
Error: EACCES: permission denied, open '/Users/gegaozhao/Desktop/SengledLife-0/platforms/ios/cordova/build-extras.xcconfig'
gegaozhaodeiMac:SengledLife-0 gegaozhao$ sudo ionic cordova compile ios
cordova compile ios
✖ Running command - failed!
[ERROR] Cordova encountered an error.
You may get more insight by running the Cordova command above directly.
[ERROR] An error occurred while running cordova compile ios (exit code 1):
(truncated) ... :/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/ImageMagick/bin:/Applications/Wireshark.app/Contents/MacOS"
/usr/sbin/chown -RH root:wheel /var/root/Library/Developer/Xcode/DerivedData/SengledLife-ewbxwhbmxfyrqvehvjnxjlgxqyej/Build/Intermediates/ArchiveIntermediates/SengledLife/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/libCordova.a
SetMode u+w,go-w,a+rX /var/root/Library/Developer/Xcode/DerivedData/SengledLife-ewbxwhbmxfyrqvehvjnxjlgxqyej/Build/Intermediates/ArchiveIntermediates/SengledLife/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/libCordova.a
cd /Users/gegaozhao/Desktop/SengledLife-0/platforms/ios/CordovaLib
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/ImageMagick/bin:/Applications/Wireshark.app/Contents/MacOS"
/bin/chmod -RH u+w,go-w,a+rX /var/root/Library/Developer/Xcode/DerivedData/SengledLife-ewbxwhbmxfyrqvehvjnxjlgxqyej/Build/Intermediates/ArchiveIntermediates/SengledLife/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/libCordova.a
=== BUILD TARGET SengledLife OF PROJECT SengledLife WITH CONFIGURATION Debug ===
Check dependencies
Signing for "SengledLife" requires a development team. Select a development team in the project editor.
warning: no rule to process file '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.1.sdk/System/Library/Frameworks/SLLivePlaySdk.framework' of type wrapper.framework for architecture armv7
warning: no rule to process file '/Users/gegaozhao/Desktop/SengledLife-0/platforms/ios/SengledLife/Plugins/com.sengled.slliveplayer/SLLivePlayBundle.bundle' of type wrapper.plug-in for architecture armv7
warning: no rule to process file '/Users/gegaozhao/Desktop/SengledLife-0/platforms/ios/SengledLife/Plugins/com.sengled.snapNetwork/cloud' of type file for architecture armv7
warning: no rule to process file '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.1.sdk/System/Library/Frameworks/ElementScanBulbCodeVIewSdk.framework' of type wrapper.framework for architecture armv7
warning: no rule to process file '/Users/gegaozhao/Desktop/SengledLife-0/platforms/ios/SengledLife/Plugins/com.sengled.zxing.barcodescanner/notice.gif' of type image.gif for architecture armv7
warning: no rule to process file '/Users/gegaozhao/Desktop/SengledLife-0/platforms/ios/SengledLife/Plugins/com.sengled.zxing.barcodescanner/ScanBulbCodeViewController.h' of type sourcecode.c.h for architecture armv7
warning: no rule to process file '/Users/gegaozhao/Desktop/SengledLife-0/platforms/ios/SengledLife/Plugins/com.sengled.zxing.barcodescanner/SlScanNavigationController.h' of type sourcecode.c.h for architecture armv7
warning: no rule to process file '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.1.sdk/System/Library/Frameworks/SLLivePlaySdk.framework' of type wrapper.framework for architecture arm64
warning: no rule to process file '/Users/gegaozhao/Desktop/SengledLife-0/platforms/ios/SengledLife/Plugins/com.sengled.slliveplayer/SLLivePlayBundle.bundle' of type wrapper.plug-in for architecture arm64
warning: no rule to process file '/Users/gegaozhao/Desktop/SengledLife-0/platforms/ios/SengledLife/Plugins/com.sengled.snapNetwork/cloud' of type file for architecture arm64
warning: no rule to process file '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.1.sdk/System/Library/Frameworks/ElementScanBulbCodeVIewSdk.framework' of type wrapper.framework for architecture arm64
warning: no rule to process file '/Users/gegaozhao/Desktop/SengledLife-0/platforms/ios/SengledLife/Plugins/com.sengled.zxing.barcodescanner/notice.gif' of type image.gif for architecture arm64
warning: no rule to process file '/Users/gegaozhao/Desktop/SengledLife-0/platforms/ios/SengledLife/Plugins/com.sengled.zxing.barcodescanner/ScanBulbCodeViewController.h' of type sourcecode.c.h for architecture arm64
warning: no rule to process file '/Users/gegaozhao/Desktop/SengledLife-0/platforms/ios/SengledLife/Plugins/com.sengled.zxing.barcodescanner/SlScanNavigationController.h' of type sourcecode.c.h for architecture arm64
Code signing is required for product type 'Application' in SDK 'iOS 10.2'
** ARCHIVE FAILED **
The following build commands failed:
Check dependencies
(1 failure)
Error: Error code 65 for command: xcodebuild with args: -xcconfig,/Users/gegaozhao/Desktop/SengledLife-0/platforms/ios/cordova/build-debug.xcconfig,-workspace,SengledLife.xcworkspace,-scheme,SengledLife,-configuration,Debug,-destination,generic/platform=iOS,-archivePath,SengledLife.xcarchive,archive,CONFIGURATION_BUILD_DIR=/Users/gegaozhao/Desktop/SengledLife-0/platforms/ios/build/device,SHARED_PRECOMPS_DIR=/Users/gegaozhao/Desktop/SengledLife-0/platforms/ios/build/sharedpch
--- The above is my detailed information, if there is a good solution, please share, thanks
I am running a React-Native iOS app and I am getting the following errors when I build within XCode. What could be the issue?
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't locate file for: -lBVLinearGradient
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: -lBVLinearGradient is not an object file (not allowed in a library)
The issue is that the linker can't locate the library:
libBVLinearGradient
You follow the readme, all steps? You did the step 2, 3 and 4
correctly? After you import in Xcode project the file
libBVLinearGradient.a is in Products folder.
↳ https://github.com/react-native-community/react-native-linear-gradient/issues/20