storesafe / cordova-sqlite-storage

A Cordova/PhoneGap plugin to open and use sqlite databases on Android, iOS and Windows with HTML5/Web SQL API
Other
2.15k stars 715 forks source link

iOS build -Cordova-sqlite-starter-test.xcodeproj cannot be opened because the project file cannot be parsed. #525

Open jasminsuljic opened 8 years ago

jasminsuljic commented 8 years ago

Build & run test project https://github.com/brodybits/Cordova-sqlite-bootstrap-test fails.

Error log:

Running command: /Users/jasminsuljic/Developing/web/cordova/Cordova-sqlite-bootstrap-test/platforms/ios/cordova/run Building project : /Users/jasminsuljic/Developing/web/cordova/Cordova-sqlite-bootstrap-test/platforms/ios/Cordova-sqlite-starter-test.xcodeproj Configuration : Debug Platform : emulator 2016-08-02 12:31:38.346 xcodebuild[4790:156177] [MT] PluginLoading: Required plug-in compatibility UUID ACA8656B-FEA8-4B6D-8E4A-93F4C95C362C for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/R.swift.xcplugin' not present in DVTPlugInCompatibilityUUIDs 2016-08-02 12:31:38.348 xcodebuild[4790:156177] [MT] PluginLoading: Required plug-in compatibility UUID ACA8656B-FEA8-4B6D-8E4A-93F4C95C362C for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/FuzzyAutocomplete.xcplugin' not present in DVTPlugInCompatibilityUUIDs Build settings from command line: ARCHS = i386 CONFIGURATION_BUILD_DIR = /Users/jasminsuljic/Developing/web/cordova/Cordova-sqlite-bootstrap-test/platforms/ios/build/emulator SDKROOT = iphonesimulator9.3 SHARED_PRECOMPS_DIR = /Users/jasminsuljic/Developing/web/cordova/Cordova-sqlite-bootstrap-test/platforms/ios/build/sharedpch VALID_ARCHS = i386

Build settings from configuration file '/Users/jasminsuljic/Developing/web/cordova/Cordova-sqlite-bootstrap-test/platforms/ios/cordova/build-debug.xcconfig': CODE_SIGN_IDENTITY = iPhone Developer CODE_SIGN_RESOURCE_RULES_PATH = $(SDKROOT)/ResourceRules.plist

2016-08-02 12:31:38.555 xcodebuild[4790:156177] CFPropertyListCreateFromXMLData(): Old-style plist parser: missing semicolon in dictionary on line 46. Parsing will be abandoned. Break on _CFPropertyListMissingSemicolon to debug. 2016-08-02 12:31:38.556 xcodebuild[4790:156177] CFPropertyListCreateFromXMLData(): Old-style plist parser: missing semicolon in dictionary on line 46. Parsing will be abandoned. Break on _CFPropertyListMissingSemicolon to debug. 2016-08-02 12:31:38.557 xcodebuild[4790:156177] Error Domain=NSCocoaErrorDomain Code=3840 "Unexpected character / at line 1" UserInfo={NSDebugDescription=Unexpected character / at line 1, kCFPropertyListOldStyleParsingError=Error Domain=NSCocoaErrorDomain Code=3840 "Missing ';' on line 46" UserInfo={NSDebugDescription=Missing ';' on line 46}} xcodebuild: error: Unable to read project 'Cordova-sqlite-starter-test.xcodeproj'. Reason: Project /Users/jasminsuljic/Developing/web/cordova/Cordova-sqlite-bootstrap-test/platforms/ios/Cordova-sqlite-starter-test.xcodeproj cannot be opened because the project file cannot be parsed.

This error also occurs on other project, if i remove cordova-sqlite-storage plugin build passes.

Enviroment: OS X El Capitan, 10.11.6, Xcode: 7.3.1

brodycj commented 8 years ago

The error

2016-08-02 12:31:38.346 xcodebuild[4790:156177] [MT] PluginLoading: Required plug-in compatibility UUID ACA8656B-FEA8-4B6D-8E4A-93F4C95C362C for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/R.swift.xcplugin' not present in DVTPlugInCompatibilityUUIDs

appears to be an issue with your Xcode setup though I cannot say for sure. I wonder if the following would help: http://stackoverflow.com/questions/35110910/xcode-7-pluginloading-required-plug-in-compatibility-uuid

As a workaround can you try using https://github.com/litehelpers/Cordova-sqlite-legacy-build-support and report if it helps or not?

jasminsuljic commented 8 years ago

I've fixed xcode missing plugins, it did not help.

However using https://github.com/litehelpers/Cordova-sqlite-legacy-build-support helped, build and run were successful, but app does not work as expected. Only 'show native alert' works.

I'd suggest to look for error in:

2016-08-02 12:31:38.555 xcodebuild[4790:156177] CFPropertyListCreateFromXMLData(): Old-style plist parser: missing semicolon in dictionary on line 46. Parsing will be abandoned. Break on _CFPropertyListMissingSemicolon to debug. 2016-08-02 12:31:38.556 xcodebuild[4790:156177] CFPropertyListCreateFromXMLData(): Old-style plist parser: missing semicolon in dictionary on line 46. Parsing will be abandoned. Break on _CFPropertyListMissingSemicolon to debug. 2016-08-02 12:31:38.557 xcodebuild[4790:156177] Error Domain=NSCocoaErrorDomain Code=3840 "Unexpected character / at line 1" UserInfo={NSDebugDescription=Unexpected character / at line 1, kCFPropertyListOldStyleParsingError=Error Domain=NSCocoaErrorDomain Code=3840 "Missing ';' on line 46" UserInfo={NSDebugDescription=Missing ';' on line 46}}

I can attach .xcodeproj file, if needed.

brodycj commented 8 years ago

However using https://github.com/litehelpers/Cordova-sqlite-legacy-build-support helped, build and run were successful, but app does not work as expected. Only 'show native alert' works.

That sounds like an installation problem. You may want to try this from a fresh new copy of https://github.com/brodybits/Cordova-sqlite-bootstrap-test.

I'd suggest to look for error in:

2016-08-02 12:31:38.555 xcodebuild[4790:156177] CFPropertyListCreateFromXMLData(): Old-style plist parser: missing semicolon in dictionary on line 46. Parsing will be abandoned. Break on _CFPropertyListMissingSemicolon to debug.

I have not personally encountered this error. Here are a few things I found from a quick search:

YannickGagnon commented 8 years ago

I'm having a similar issue namely, un-parsable project file. I figured that removing the compiler-flags attribute of source-file for sqlite3.c and then adding it from Xcode build Phase > Compile Sources fixes the issue.

I couldn't figure what semicolon was missing.