-
Notifications
You must be signed in to change notification settings - Fork 986
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot use cordova platform add ios
on windows - xcode error 66 is returned during the subsequent cordova build on macOS
#971
Comments
cordova platform add ios
on windows - xcode error 66 is returned during the cordova buildcordova platform add ios
on windows - xcode error 66 is returned during the subsequent cordova build on macOS
iOS platform and commands are only supported on Macs, as documented here However, I think maybe the CLI should actually tell you that if you try to use
It's also not recommended to copy Instead, you can clone your project on the mac environment, then use Hope this helps to not only point out the "what", but also the "why" what you're attempting to do won't work.
For this reason, I'll leave the ticket open. |
You can run Just transfer the |
Cordova-iOS requires macOS for building and deploying, but it seems to be a fairly common problem that people generate the iOS project files on Windows (which isn't technically supported, but _appears_ to work) and then Xcode can't open it on macOS because of a bad path separator. The path separator problem is fixable, so let's at least generate a valid Xcode project. This does *not* claim to add support for using Cordova-iOS on Windows. Closes apache#971. Closes apache#1016. Closes apache#1084.
Cordova-iOS requires macOS for building and deploying, but it seems to be a fairly common problem that people generate the iOS project files on Windows (which isn't technically supported, but _appears_ to work) and then Xcode can't open it on macOS because of a bad path separator. The path separator problem is fixable, so let's at least generate a valid Xcode project. This does *not* claim to add support for using Cordova-iOS on Windows. Closes apache#971. Closes apache#1016. Closes apache#1084.
Cordova-iOS requires macOS for building and deploying, but it seems to be a fairly common problem that people generate the iOS project files on Windows (which isn't technically supported, but _appears_ to work) and then Xcode can't open it on macOS because of a bad path separator. The path separator problem is fixable, so let's at least generate a valid Xcode project. This does *not* claim to add support for using Cordova-iOS on Windows. Closes #971. Closes #1016. Closes #1084.
Bug Report
Cannot use
cordova platform add ios
on windowsProblem
Added an ios platform on a windows box results in the file containing the wrong slash type, backslashes rather than forward-slashes.
What is expected to happen
Adding the platform on macOS includes the following line the the xcode project file
301BF52D109A57CC0062928A /* CordovaLib/CordovaLib.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = CordovaLib.xcodeproj; path = CordovaLib/CordovaLib.xcodeproj; sourceTree = ""; };
Notice the slash in the path
What does actually happen?
Adding the platform on windows includes the following line the the xcode project file
301BF52D109A57CC0062928A /* CordovaLib/CordovaLib.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = CordovaLib.xcodeproj; path = CordovaLib\CordovaLib.xcodeproj; sourceTree = ""; };
Notice the slash in the path
The project fails to open in xcode. The following error is returned when attempting to build via corodva-cli
stderr:
'2020-08-20 14:22:02.768 xcodebuild[32234:997204] CFPropertyListCreateFromXMLData(): Old-style plist parser: missing semicolon in dictionary on line 75. Parsing will be abandoned. Break on _CFPropertyListMissingSemicolon to debug.\n2020-08-20 14:22:02.768 xcodebuild[32234:997204] Error Domain=NSCocoaErrorDomain Code=3840 "JSON text did not start with array or object and option to allow fragments not set." UserInfo={NSDebugDescription=JSON text did not start with array or object and option to allow fragments not set.}\n2020-08-20 14:22:02.768 xcodebuild[32234:997204] [MT] IDEFileReferenceDebug: [Load] <IDEFileReference, 0x7fad238295e0: name:xxx path:group:xxx.xcodeproj> Failed to load container at path: /Mobile/platforms/ios/xxxxxx.xcodeproj, Error: Error Domain=Xcode3ProjectErrorDomain Code=2 "The project ‘xxx’ is damaged and cannot be opened due to a parse error. Examine the project file for invalid edits or unresolved source control conflicts.\n\nPath: Mobile/platforms/ios/xxxxxx.xcodeproj" UserInfo={NSLocalizedDescription=The project ‘xxx’ is damaged and cannot be opened due to a parse error. Examine the project file for invalid edits or unresolved source control conflicts.\n\nPath: /Mobile/platforms/ios/xxx.xcodeproj}\n--- xcodebuild: WARNING: Unable to open project file '/Mobile/platforms/ios/xxx.xcodeproj' in workspace 'xxx.xcworkspace'.\n2020-08-20 14:22:02.862 xcodebuild[32234:997374] DVTProvisioningProfileManager: Failed to load profile "///Library/MobileDevice/Provisioning Profiles/Old" (Error Domain=DVTProvisioningProfileSourceErrorDomain Code=0 "No provisioning profile provider found for profile "///Library/MobileDevice/Provisioning Profiles/Old"." UserInfo={NSLocalizedDescription=No provisioning profile provider found for profile "///Library/MobileDevice/Provisioning Profiles/Old".})\n2020-08-20 14:22:03.021 xcodebuild[32234:997377] CFURLRequestSetHTTPCookieStorageAcceptPolicy_block_invoke: no longer implemented and should not be called\nxcodebuild: error: Scheme xxx is not currently configured for the archive action.\n\nxcodebuild: Command failed with exit code 66\n' }
Command or Code
cordova platform add ios
on Windowscordova build ios
on macOSEnvironment, Platform, Device
Adding the ios platform on Windows 10, copying to a mac and building there
Version information
on both the windows and macOS boxes, we are using
Cordova - v10
Checklist
The text was updated successfully, but these errors were encountered: