If I create a new cordova project, add the ios patform, add the org.apache.cordova.device plugin, then "cordova build ios" everything is fine.
If then, I open the project in xcode and run on the simulator. Then "cordova plugin add org.apache.cordova.camera". Every "cordova build ios" fails with:
william-macbook-pro:pluginapp william$ cordova build ios
Generating config.xml from defaults for platform "ios"
Preparing ios project
Compiling app on platform "ios" via command "/Users/william/working/pluginapp/platforms/ios/cordova/build"
/usr/local/lib/node_modules/cordova/node_modules/q/q.js:126
throw e;
^
Error: An error occurred while building the ios project.2014-01-16 14:29:23.881 xcodebuild[1838:1007] [MT] PluginLoading: Required plug-in compatibility UUID 37B30044-3B14-46BA-ABAA-F01000C27B63 for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/XCode4_beginning_of_line.xcplugin' not present in DVTPlugInCompatibilityUUIDs
2014-01-16 14:29:24.263 xcodebuild[1838:4207] DeveloperPortal: Using pre-existing current store at URL (file:///Users/william/Library/Developer/Xcode/DeveloperPortal%205.0.2.db).
2014-01-16 14:29:24.463 xcodebuild[1850:1007] [MT] PluginLoading: Required plug-in compatibility UUID 37B30044-3B14-46BA-ABAA-F01000C27B63 for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/XCode4_beginning_of_line.xcplugin' not present in DVTPlugInCompatibilityUUIDs
2014-01-16 14:29:24.871 xcodebuild[1850:4703] DeveloperPortal: Using pre-existing current store at URL (file:///Users/william/Library/Developer/Xcode/DeveloperPortal%205.0.2.db).
2014-01-16 14:29:25.126 xcodebuild[1860:1007] [MT] PluginLoading: Required plug-in compatibility UUID 37B30044-3B14-46BA-ABAA-F01000C27B63 for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/XCode4_beginning_of_line.xcplugin' not present in DVTPlugInCompatibilityUUIDs
2014-01-16 14:29:25.584 xcodebuild[1860:4107] DeveloperPortal: Using pre-existing current store at URL (file:///Users/william/Library/Developer/Xcode/DeveloperPortal%205.0.2.db).
2014-01-16 14:29:28.476 xcodebuild[1860:2407] DVTAssertions: Warning in /SourceCache/IDEXcode3ProjectSupport/IDEXcode3ProjectSupport-3575/Xcode3Sources/XcodeIDE/Frameworks/DevToolsBase/pbxcore/SpecificationTypes/XCGccMakefileDependencies.m:78
Details: Failed to load dependencies output contents from ``/Users/william/working/pluginapp/platforms/ios/build/HelloCordova.build/Debug-iphoneos/HelloCordova.build/Objects-normal/armv7/CDVCamera.d''. Error: Error Domain=NSCocoaErrorDomain Code=260 "The file “CDVCamera.d” couldn’t be opened because there is no such file." UserInfo=0x7fd19428f110 {NSFilePath=/Users/william/working/pluginapp/platforms/ios/build/HelloCordova.build/Debug-iphoneos/HelloCordova.build/Objects-normal/armv7/CDVCamera.d, NSUnderlyingError=0x7fd1948242a0 "The operation couldn’t be completed. No such file or directory"}. User info: {
NSFilePath = "/Users/william/working/pluginapp/platforms/ios/build/HelloCordova.build/Debug-iphoneos/HelloCordova.build/Objects-normal/armv7/CDVCamera.d";
NSUnderlyingError = "Error Domain=NSPOSIXErrorDomain Code=2 \"The operation couldn\U2019t be completed. No such file or directory\"";
}.
Function: void XCGccMakefileDependenciesParsePathsFromRuleFile(NSString *__strong, F) [F = <lambda at /SourceCache/IDEXcode3ProjectSupport/IDEXcode3ProjectSupport-3575/Xcode3Sources/XcodeIDE/Frameworks/DevToolsBase/pbxcore/SpecificationTypes/XCGccMakefileDependencies.m:168:73>]
Thread: <NSThread: 0x7fd19428f150>{name = (null), num = 7}
Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide.
2014-01-16 14:29:28.498 xcodebuild[1860:3d23] DVTAssertions: Warning in /SourceCache/IDEXcode3ProjectSupport/IDEXcode3ProjectSupport-3575/Xcode3Sources/XcodeIDE/Frameworks/DevToolsBase/pbxcore/SpecificationTypes/XCGccMakefileDependencies.m:78
Details: Failed to load dependencies output contents from ``/Users/william/working/pluginapp/platforms/ios/build/HelloCordova.build/Debug-iphoneos/HelloCordova.build/Objects-normal/armv7/CDVJpegHeaderWriter.d''. Error: Error Domain=NSCocoaErrorDomain Code=260 "The file “CDVJpegHeaderWriter.d” couldn’t be opened because there is no such file." UserInfo=0x7fd194685510 {NSFilePath=/Users/william/working/pluginapp/platforms/ios/build/HelloCordova.build/Debug-iphoneos/HelloCordova.build/Objects-normal/armv7/CDVJpegHeaderWriter.d, NSUnderlyingError=0x7fd1946af240 "The operation couldn’t be completed. No such file or directory"}. User info: {
NSFilePath = "/Users/william/working/pluginapp/platforms/ios/build/HelloCordova.build/Debug-iphoneos/HelloCordova.build/Objects-normal/armv7/CDVJpegHeaderWriter.d";
NSUnderlyingError = "Error Domain=NSPOSIXErrorDomain Code=2 \"The operation couldn\U2019t be completed. No such file or directory\"";
}.
Function: void XCGccMakefileDependenciesParsePathsFromRuleFile(NSString *__strong, F) [F = <lambda at /SourceCache/IDEXcode3ProjectSupport/IDEXcode3ProjectSupport-3575/Xcode3Sources/XcodeIDE/Frameworks/DevToolsBase/pbxcore/SpecificationTypes/XCGccMakefileDependencies.m:168:73>]
Thread: <NSThread: 0x7fd1946b0d60>{name = (null), num = 8}
Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide.
** BUILD FAILED **
The following build commands failed:
CompileC build/HelloCordova.build/Debug-iphoneos/HelloCordova.build/Objects-normal/armv7/CDVCamera.o HelloCordova/Plugins/org.apache.cordova.camera/CDVCamera.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
CompileC build/HelloCordova.build/Debug-iphoneos/HelloCordova.build/Objects-normal/armv7/CDVJpegHeaderWriter.o HelloCordova/Plugins/org.apache.cordova.camera/CDVJpegHeaderWriter.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(2 failures)
2014-01-16 14:29:28.653 xcodebuild[2059:1007] [MT] PluginLoading: Required plug-in compatibility UUID 37B30044-3B14-46BA-ABAA-F01000C27B63 for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/XCode4_beginning_of_line.xcplugin' not present in DVTPlugInCompatibilityUUIDs
2014-01-16 14:29:29.243 xcodebuild[2059:5c03] DVTAssertions: Warning in /SourceCache/IDEXcode3ProjectSupport/IDEXcode3ProjectSupport-3575/Xcode3Sources/XcodeIDE/Frameworks/DevToolsBase/pbxcore/SpecificationTypes/XCGccMakefileDependencies.m:78
Details: Failed to load dependencies output contents from ``/Users/william/working/pluginapp/platforms/ios/build/HelloCordova.build/Debug-iphonesimulator/HelloCordova.build/Objects-normal/i386/CDVCamera.d''. Error: Error Domain=NSCocoaErrorDomain Code=260 "The file “CDVCamera.d” couldn’t be opened because there is no such file." UserInfo=0x7f93dba28370 {NSFilePath=/Users/william/working/pluginapp/platforms/ios/build/HelloCordova.build/Debug-iphonesimulator/HelloCordova.build/Objects-normal/i386/CDVCamera.d, NSUnderlyingError=0x7f93dba282a0 "The operation couldn’t be completed. No such file or directory"}. User info: {
NSFilePath = "/Users/william/working/pluginapp/platforms/ios/build/HelloCordova.build/Debug-iphonesimulator/HelloCordova.build/Objects-normal/i386/CDVCamera.d";
NSUnderlyingError = "Error Domain=NSPOSIXErrorDomain Code=2 \"The operation couldn\U2019t be completed. No such file or directory\"";
}.
Function: void XCGccMakefileDependenciesParsePathsFromRuleFile(NSString *__strong, F) [F = <lambda at /SourceCache/IDEXcode3ProjectSupport/IDEXcode3ProjectSupport-3575/Xcode3Sources/XcodeIDE/Frameworks/DevToolsBase/pbxcore/SpecificationTypes/XCGccMakefileDependencies.m:168:73>]
Thread: <NSThread: 0x7f93dba28300>{name = (null), num = 7}
Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide.
2014-01-16 14:29:29.262 xcodebuild[2059:2007] DVTAssertions: Warning in /SourceCache/IDEXcode3ProjectSupport/IDEXcode3ProjectSupport-3575/Xcode3Sources/XcodeIDE/Frameworks/DevToolsBase/pbxcore/SpecificationTypes/XCGccMakefileDependencies.m:78
Details: Failed to load dependencies output contents from ``/Users/william/working/pluginapp/platforms/ios/build/HelloCordova.build/Debug-iphonesimulator/HelloCordova.build/Objects-normal/i386/CDVJpegHeaderWriter.d''. Error: Error Domain=NSCocoaErrorDomain Code=260 "The file “CDVJpegHeaderWriter.d” couldn’t be opened because there is no such file." UserInfo=0x7f93dba19310 {NSFilePath=/Users/william/working/pluginapp/platforms/ios/build/HelloCordova.build/Debug-iphonesimulator/HelloCordova.build/Objects-normal/i386/CDVJpegHeaderWriter.d, NSUnderlyingError=0x7f93db7bed50 "The operation couldn’t be completed. No such file or directory"}. User info: {
NSFilePath = "/Users/william/working/pluginapp/platforms/ios/build/HelloCordova.build/Debug-iphonesimulator/HelloCordova.build/Objects-normal/i386/CDVJpegHeaderWriter.d";
NSUnderlyingError = "Error Domain=NSPOSIXErrorDomain Code=2 \"The operation couldn\U2019t be completed. No such file or directory\"";
}.
Function: void XCGccMakefileDependenciesParsePathsFromRuleFile(NSString *__strong, F) [F = <lambda at /SourceCache/IDEXcode3ProjectSupport/IDEXcode3ProjectSupport-3575/Xcode3Sources/XcodeIDE/Frameworks/DevToolsBase/pbxcore/SpecificationTypes/XCGccMakefileDependencies.m:168:73>]
Thread: <NSThread: 0x7f93db8a9720>{name = (null), num = 8}
Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide.
** BUILD FAILED **
The following build commands failed:
CompileC build/HelloCordova.build/Debug-iphonesimulator/HelloCordova.build/Objects-normal/i386/CDVCamera.o HelloCordova/Plugins/org.apache.cordova.camera/CDVCamera.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
CompileC build/HelloCordova.build/Debug-iphonesimulator/HelloCordova.build/Objects-normal/i386/CDVJpegHeaderWriter.o HelloCordova/Plugins/org.apache.cordova.camera/CDVJpegHeaderWriter.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(2 failures)
at ChildProcess.<anonymous> (/usr/local/lib/node_modules/cordova/src/compile.js:65:22)
at ChildProcess.EventEmitter.emit (events.js:98:17)
at maybeClose (child_process.js:735:16)
at Process.ChildProcess._handle.onexit (child_process.js:802:5)
However, if I never open the project in xcode, the plugins install and "cordova build" works fine. What could be causing this?
Related
After generating the xcarchive, I have to generate the .IPA file so i'm using the following code:
xcodebuild -exportArchive
-archivePath "$WORKSPACE/ios/App/$PROJECTNAME.xcarchive"
-exportPath "$WORKSPACE/ios/App/$PROJECTNAME.ipa"
-exportOptionsPlist "$WORKSPACE/ios/App/export.plist"
But it ended with this error:
2022-09-06 12:29:42.205 xcodebuild[2755:797683] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path "/var/folders/3t/z80f1v757qv_2zzptl08r6wr0000gn/T/App_2022-09-06_12-29-42.203.xcdistributionlogs".
2022-09-06 12:29:42.226 xcodebuild[2755:797683] [MT] IDEDistributionMethodManager: -[IDEDistributionMethodManager orderedDistributionMethodsForTask:archive:]: Error = Error Domain=IDEDistributionMethodManagerErrorDomain Code=2 "Unknown Distribution Error" UserInfo={NSLocalizedDescription=Unknown Distribution Error}
2022-09-06 12:29:42.226 xcodebuild[2755:797683] [MT] IDEDistributionMethodManager: -[IDEDistributionMethodManager orderedDistributionMethodsForTask:archive:]: Error = Error Domain=IDEDistributionMethodManagerErrorDomain Code=2 "Unknown Distribution Error" UserInfo={NSLocalizedDescription=Unknown Distribution Error}
error: exportArchive: Found no compatible export methods for: <DVTFilePath:0x7ffbeaf3ebc0:'/Users/sdaae/datos_apl/jenkins-dsa/workspace/PLANTILLA_IOS_NEW/ios/App/App.xcarchive'>
Error Domain=IDEFoundationErrorDomain Code=1 "Found no compatible export methods for: <DVTFilePath:0x7ffbeaf3ebc0:'/Users/sdaae/datos_apl/jenkins-dsa/workspace/PLANTILLA_IOS_NEW/ios/App/App.xcarchive'>" UserInfo={NSLocalizedDescription=Found no compatible export methods for: <DVTFilePath:0x7ffbeaf3ebc0:'/Users/sdaae/datos_apl/jenkins-dsa/workspace/PLANTILLA_IOS_NEW/ios/App/App.xcarchive'>}
EXPORT FAILED
And after a lot of hours searching for a solution, with no results, i decided to create this post to see if anyone can help me.
Thanks for your time.
I've a problem running Xcode 9.2. I've just extracted Xcode.xip file and when try to start Xcode, it says:
Loading a plug-in failed.
The plug-in or one of its prerequisite plug-ins may be missing or
damaged and may need to be reinstalled.
Here is the log:
Shared framework ModelIO.framework not loaded, error: Error
Domain=NSCocoaErrorDomain Code=4 "The bundle “ModelIO.framework”
couldn’t be loaded because its executable couldn’t be located."
UserInfo={NSLocalizedFailureReason=The bundle’s executable couldn’t be
located., NSLocalizedRecoverySuggestion=Try reinstalling the bundle.,
NSBundlePath=/Users/amirrezazadeh/Desktop/Xcode.app/Contents/SharedFrameworks/ModelIO.framework,
NSLocalizedDescription=The bundle “ModelIO.framework” couldn’t be
loaded because its executable couldn’t be located.}
Shared framework SceneKit.framework not loaded, error: Error
Domain=NSCocoaErrorDomain Code=4 "The bundle “SceneKit.framework”
couldn’t be loaded because its executable couldn’t be located."
UserInfo={NSLocalizedFailureReason=The bundle’s executable couldn’t be
located., NSLocalizedRecoverySuggestion=Try reinstalling the bundle.,
NSBundlePath=/Users/amirrezazadeh/Desktop/Xcode.app/Contents/SharedFrameworks/SceneKit.framework,
NSLocalizedDescription=The bundle “SceneKit.framework” couldn’t be
loaded because its executable couldn’t be located.}
Shared framework PhysicsKit.framework not loaded, error: Error
Domain=NSCocoaErrorDomain Code=4 "The bundle “PhysicsKit.framework”
couldn’t be loaded because its executable couldn’t be located."
UserInfo={NSLocalizedFailureReason=The bundle’s executable couldn’t be
located., NSLocalizedRecoverySuggestion=Try reinstalling the bundle.,
NSBundlePath=/Users/amirrezazadeh/Desktop/Xcode.app/Contents/SharedFrameworks/PhysicsKit.framework,
NSLocalizedDescription=The bundle “PhysicsKit.framework” couldn’t be
loaded because its executable couldn’t be located.}
and more...!
Solved. I was running MacOs on vmware and tried to extract Xcode.xip file while it was under a shared folder. I just moved Xcode.xip to the guest machine (MacOs) and extracted it and it worked.
I guess it was about either permission or Xcode.xip file path length.
I want to update my app that is currently in AppStore. So I logged in into apple developer and downloaded the certificate from there (which is not expired yet).
What do I have now:
The certificate file $my_certificatename.cer
I still have a .p12-file in my project directory, which (I thought) should be the corresponding private key.
The following build.xcconfig:
CODE_SIGN_IDENTITY = $my_certificatename;
DEVELOPMENT_TEAM = $my_TeamID;
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
updated version numbers in my Info.plist
Then I tried to run the following command:
tns build ios --release --for-device
Which does some stuff and then displays the following error:
** ARCHIVE SUCCEEDED **
2017-09-19 12:35:15.309 xcodebuild[3302:410544] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path '/var/folders/nl/z3cdbrb17776dtxlltdqvc4h0000gn/T/HandyApp_2017-09-19_12-35-15.308.xcdistributionlogs'.
2017-09-19 12:35:17.352 xcodebuild[3302:410544] [MT] IDEDistribution: Step failed: <IDEDistributionSigningAssetsStep: 0x7f8964985730>: Error Domain=IDEDistributionErrorDomain Code=1 "(null)"
error: exportArchive: The operation couldn’t be completed. (IDEDistributionErrorDomain error 1.)
Error Domain=IDEDistributionErrorDomain Code=1 "(null)"
** EXPORT FAILED **
Command xcodebuild failed with exit code 70
# build ios
Did I miss something in my configuration? Can anyone relate to this error?
My Xcode Signing Identities of my Account:
My app name is mobile-app
Create a cordova project
add ios platform
add plugin "cordova plugin add org.apache.cordova.contacts"
go to project folder /platforms/ios/mobile-app/ and add the following to config.xml
<feature name="Contacts">
<param name="ios-package" value="CDVContacts" />
</feature>
want to build the ios project with terminal "cordova build ios"
I get the error in terminal:
generating config.xml from defaults for platform "ios"
Preparing ios project
Compiling app on platform "ios" via command "/Users/test/mobile-app/platforms/ios/cordova/build"
[Error: An error occurred while building the ios project.** BUILD FAILED **
The following build commands failed:
Check dependencies
(1 failure)
2014-01-13 20:49:45.743 xcodebuild[6403:4807] DVTAssertions: Warning in /SourceCache/IDEXcode3ProjectSupport/IDEXcode3ProjectSupport-3575/Xcode3Sources/XcodeIDE/Frameworks/DevToolsBase/pbxcore/SpecificationTypes/XCGccMakefileDependencies.m:78
Details: Failed to load dependencies output contents from ``/Users/test/mobile-app/platforms/ios/build/mobile-app.build/Debug-iphonesimulator/mobile-app.build/Objects-normal/i386/CDVContacts.d''. Error: Error Domain=NSCocoaErrorDomain Code=260 "The file “CDVContacts.d” couldn’t be opened because there is no such file." UserInfo=0x7fa634d724e0 {NSFilePath=/Users/test/mobile-app/platforms/ios/build/mobile-app.build/Debug-iphonesimulator/mobile-app.build/Objects-normal/i386/CDVContacts.d, NSUnderlyingError=0x7fa634d72430 "The operation couldn’t be completed. No such file or directory"}. User info: {
NSFilePath = "/Users/test/mobile-app/platforms/ios/build/mobile-app.build/Debug-iphonesimulator/mobile-app.build/Objects-normal/i386/CDVContacts.d";
NSUnderlyingError = "Error Domain=NSPOSIXErrorDomain Code=2 \"The operation couldn\U2019t be completed. No such file or directory\"";
}.
Function: void XCGccMakefileDependenciesParsePathsFromRuleFile(NSString *__strong, F) [F = <lambda at /SourceCache/IDEXcode3ProjectSupport/IDEXcode3ProjectSupport-3575/Xcode3Sources/XcodeIDE/Frameworks/DevToolsBase/pbxcore/SpecificationTypes/XCGccMakefileDependencies.m:168:73>]
Thread: <NSThread: 0x7fa634d723f0>{name = (null), num = 8}
Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide.
2014-01-13 20:49:45.774 xcodebuild[6403:5d03] DVTAssertions: Warning in /SourceCache/IDEXcode3ProjectSupport/IDEXcode3ProjectSupport-3575/Xcode3Sources/XcodeIDE/Frameworks/DevToolsBase/pbxcore/SpecificationTypes/XCGccMakefileDependencies.m:78
Details: Failed to load dependencies output contents from ``/Users/test/mobile-app/platforms/ios/build/mobile-app.build/Debug-iphonesimulator/mobile-app.build/Objects-normal/i386/CDVContact.d''. Error: Error Domain=NSCocoaErrorDomain Code=260 "The file “CDVContact.d” couldn’t be opened because there is no such file." UserInfo=0x7fa634e56370 {NSFilePath=/Users/test/mobile-app/platforms/ios/build/mobile-app.build/Debug-iphonesimulator/mobile-app.build/Objects-normal/i386/CDVContact.d, NSUnderlyingError=0x7fa634e58160 "The operation couldn’t be completed. No such file or directory"}. User info: {
NSFilePath = "/Users/test/mobile-app/platforms/ios/build/mobile-app.build/Debug-iphonesimulator/mobile-app.build/Objects-normal/i386/CDVContact.d";
NSUnderlyingError = "Error Domain=NSPOSIXErrorDomain Code=2 \"The operation couldn\U2019t be completed. No such file or directory\"";
}.
Function: void XCGccMakefileDependenciesParsePathsFromRuleFile(NSString *__strong, F) [F = <lambda at /SourceCache/IDEXcode3ProjectSupport/IDEXcode3ProjectSupport-3575/Xcode3Sources/XcodeIDE/Frameworks/DevToolsBase/pbxcore/SpecificationTypes/XCGccMakefileDependencies.m:168:73>]
Thread: <NSThread: 0x7fa634e53090>{name = (null), num = 9}
Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide.
** BUILD FAILED **
The following build commands failed:
CompileC build/mobile-app.build/Debug-iphonesimulator/mobile-app.build/Objects-normal/i386/CDVContacts.o mobile-app/Plugins/org.apache.cordova.contacts/CDVContacts.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
CompileC build/mobile-app.build/Debug-iphonesimulator/mobile-app.build/Objects-normal/i386/CDVContact.o mobile-app/Plugins/org.apache.cordova.contacts/CDVContact.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(2 failures)
]
It's a known bug of los with cordova.
you must remove ios platform with cordova platform remove ios.
then install your plugin.
then add ios platform again.
if you don't do with this order ios seem don't be able to install the plugin right.
i hope this may help you. regards.
Trying to use apportable for the first time. Keep getting this error:
TypeError: 'NoneType' object is not subscriptable
and also
NSUnderlyingError = "Error Domain=NSPOSIXErrorDomain Code=2 \"The operation couldn\U2019t be completed. No such file or directory\"";
And then the script terminates.
xcode-select --switch /Applications/Xcode.app/Contents/Developer
Background: This can occur if you've updated to Xcode 5. It seems Xcode 5 has a bug that it can generate incorrect output when running xcodebuild.