Phonegap build problems - xcode

i have recently created my first app and got it onto my ipad, however, i wasn't getting the "phonegap is working" alert. After digging around the code, it seems the onDeviceReady function is not running and i narrowed it down to the phonegap-1.3.0.js, which was missing. I thought that phonegap build this file automatically, but can't seem to find it anywhere. can someone tell me hoe to generate this file or where i can download it?

You should check that you have all the phonegap files that you need, and download the zip file from here: http://phonegap.com/download-thankyou (assuming you're ok with using the latest PhoneGap).

Visit http://code.google.com/a/eclipselabs.org/p/mobile-web-development-with-phonegap/source/browse/trunk/com.mds.apg/resources/phonegap/js/phonegap-1.3.0.js?r=126

Related

Cordova file plugin can't access the application directory on windows 8

Please help, I can't seem to get an answer for this anywhere.
If I use the Cordova file plugin to try and access the application directory on Windows 8, it always fails! Here is the basic code I am using:
window.resolveLocalFileSystemURL(cordova.file.dataDirectory + 'www/assets/images/image.png', gotFile, fail);
I have been using the same basic code on the Android and iOS versions of the app for some time now with no problem so I don't understand why the Windows 8 version doesn't like it.
Through console logs I can see that the link generated is in fact correct and it's actually exactly the same as one used to append the same image to the page (which works fine):
<img src="ms-appx:///www/assets/images/image.png">.
Can anyone please tell me why I can't use cordova.file.applicationDirectory with Windows? I know that folder is read only, I am just trying to read from it.
Note: I can use window.resolveLocalFileSystemURL with the cordova.file.applicationDirectory no problem at all, it works as expected. Its only the cordova.file.dataDirectory that always fails for me. The closest answer I could find was some people having trouble with the image paths of images saved from the camera plugin but that seems to have been a bug that was fixed by Cordova. If this is not a bug also then I'm assuming there is something really simple I can do to make the resolveLocalFileSystemURL work?
Thanks.
I found a solution to my problem by using 'windows.storage.storagefile', I had success with the following code:
Windows.Storage.StorageFile.getFileFromApplicationUriAsync(new Windows.Foundation.Uri('ms-appx:///www/test.html')).done(win, fail);
More info can be found here: msdn.microsoft.com/library/windows/apps/… I hope this helps some other people struggling with Windows 8 as I spent quite a time scratching my head about it and trying lots of different ways.
Cheers,
Stuart

Impossible to download VM on Modern.IE

Something is broken on https://dev.modern.ie/tools/vms/
After selecting the VM that I want to download, the links do not appear...
And there is a js error in my console log...
ReferenceError: i18n is not defined
I am experiencing the same issue.
I have found this gist with the direct links to the downloads:
https://gist.github.com/zmwangx/e728c56f428bc703c6f6
Only mac links but maybe the others can be built from the structure.
This Github project has the VMs available through a bash script. I'm trying to download one now, and it appears to be working. Appears to work on multiple platforms.
This is fixed since around 7.00am PST.
The issue was a missing file in the CDN that didn't get pushed (i18next\i18next.js).

Parse SDK, installed facebook framework, GADCustomEventBanner error

I have installed the Facebook SDK framework to integrate with Parse,
however I am now getting an error that says that the following code can not be found:
#import "GADCustomEventBanner.h"
the error is:
'GADCustomEventBanner.h' file not found
Does anyone know where I can find this?
Thanks in advance.
You might have deleted the file. Just download the framework and add the files back in.
Oh and by the way, try using Cocoapods. It gets sooo much easier when you manage your controls and dependencies.

Build firebreath plugin with XCode

I used prep script to generate my first plugin project, build the plugin and create a symlink in ~/Library/Internet Plugins/(exactly as the mac tutorial videos show). Every time I start a browser(Firefox, Chrome or Safari) and then close it, Xcode always alerted me that "the project file "~.xcodeproj" is modified but was changed externally. Keep this version or read from disk?"
I just can't figure out why?
So first of all, just for clarity, this is either a cmake issue or an xcode issue, not a FireBreath issue. I have never seen it happen before. The main thing I would try is to delete the build/ directory entirely and then re-run the prep script (which just runs cmake) and see if the problem persists.
If it does, most likely it's something odd with your computer configuration, and specifically your xcode configuration. :-/ I wish I could give you a better suggestion. You're also welcome to drop into the #firebreath IRC room at http://npapi.com/chat and we'll try to help you there.
i flow firebreath doc, create a symlink of plugin to ~/Library/Internet Plugins, but safari and firefox all not load the plugin.
but i cp the plugin package to ~/Library/Internet Plugins, and all browsers work.

Adding a Library to your build and link path in XCode

I am tryingo to build a GUI application using the JUCE framework on MAC OSX.
I have dowloaded all the API's and got a small hello World program running fine.
However, when I add files to my Xcode project I get compilation errors that say that the Juce library files don`t exist. I would like to know how to get the library API in the build and link path in XCode so that it finds the neccesary files for compilation.
What I would do on Visual Studio going to properties and adding aditional library dependencies, is what I need to do in XCode but I don't know how.
Any help greatly appreciated.
thanks.
Old question but maybe a useful answer in the future....
If you have the "Hello World" up and runnning, it should already be linked to the library. Are you using the introjucer? This should help get everything up and running for you. If you are, you need to add classes etc to the introjucer, as this sets up Xcode / VStudio for you. If not, (Presuming XCode 3 as you are using leopard) goto Xcode > Preferences. Scroll along to source trees, and add the path to the juce folder in there.

Resources