문제

I have a problem with my Phonegap application. I got a 404 error on phonegap.js I understand that the compiler (I'm using Phonegap build) will replace the src of my phonegap.js by the real path but I don't get that.

It's weird because I have all the other scripts loaded but not this one.

This screenshot is from Safari, debugging my application launched on my iPad to give you more details.

I'm using Phonegap 3.1.0 with an iPad Retina 64 bits with iOS 7.0.

Edit: I can't use Phonegap 3.4.0, Phonegap build is still not supporting it.

enter image description here

Thanks in advance !

도움이 되었습니까?

해결책 2

Thanks guys but the problem wasn't related to Phonegap. I copied from our desktop version and that created the problem. And as I wrote in my comment, the screenshot is from Safari debugger for my iPad, not from a browser tab.

다른 팁

Think of phonegap.js as the runtime. It only exists when your app is running on a device.

If you are previewing your app on a local web server, you will get 404 because the local runtime is not your device (its your laptop).

To solve this, developers have invented tools like PhoneGap emulate (http://emulate.phonegap.com/) where you can use an emulator to 'mock' certain behaviors in your local runtime that would occur on a device.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top