Skip to content
This repository has been archived by the owner on Apr 3, 2020. It is now read-only.

Build errors in CordovaPluginFileDemo #29

Open
videophonegeek opened this issue Mar 31, 2015 · 6 comments
Open

Build errors in CordovaPluginFileDemo #29

videophonegeek opened this issue Mar 31, 2015 · 6 comments

Comments

@videophonegeek
Copy link

screen shot 2015-03-31 at 9 59 40 am

@jondong
Copy link
Contributor

jondong commented Mar 31, 2015

we need to setup the workspace's build location to be relative to the workspace.

In File -> Workspace Settings..., click Advanced... in Build tab to open the Build Location settings. Select Custom -> Relative to Workspace, and leave the default value as it is.

And we need to build for "iOS Device" to trigger Xcode to create the directory "Debug-iphoneos".

@jondong
Copy link
Contributor

jondong commented Mar 31, 2015

I'm considering to add search paths for both simulator and device build, or write a script to do the embedding work, which could make the setup less painful.

@videophonegeek
Copy link
Author

Unfortunately the above remedies about workspace settings and build for iOS device had already been applied and the error still occurs. I can't find cdvlocalstorage.m anywhere in the local clone. Yesterday it was present in a time-machine backup.

@videophonegeek
Copy link
Author

The directory third-party/cordova-ios contained no entries. I manually copied the files from my backup and the resultant build has no errors--only the 4 warnings I mentioned earler.

The app does not run on my iOS device. NSLog only reports the issue with splashscreen images not found which comes from the splashscreen plugin. The initial index page is not displayed.

@jondong
Copy link
Contributor

jondong commented Mar 31, 2015

The third-party/cordova-ios is an submodule, and this file demo also depends on another submodule in third-party/Icenium/sample-file. so you need to run git submodule update --init --recursive in crosswalk-ios directory to retrieve source codes for those projects.

@videophonegeek
Copy link
Author

I decided to start over since the Github desktop caused several of the problems. With a fresh clone, here are the steps to be followed to make the CordovaPluginFileDemo work properly which could be in the readme:

  1. In Xcode. File-Workplace-Settings-Advanced. Build location-custom-relative to workspace.
  2. In xcode project settings-general remove Launch screen file: main. (We want the plugin to display the launch screen)
  3. Build phase-Copy bundle resources from the Icenium app-resources/ios directory add Default-568h.png, Default-Portrait.png, and Default-Landscape.png
  4. Select scheme CordovaPluginMenu either from dropdown or product menu
  5. Select destination iOS device either from dropdown or product menu
  6. Build or run if device attached

At this point the plugin demo will correctly generate the splash screen from the plugin and the file demo from the plugin. It will also work on the simulator if you chose the destination device.
screen shot 2015-03-31 at 4 01 34 pm

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants