phonegap / build

This is the public repository for PhoneGap Build source and bug tracking
92 stars 33 forks source link

Build CLI Native Code Issues #634

Closed Levitamin closed 5 years ago

Levitamin commented 5 years ago

I developed an app using PhoneGap Build in the cloud. It's working perfectly and is currently distributed through Google Play and the App Store. My company is contracting through a government vendor, and they want me to add tracking code to the native code of the app. They require Cordova apps to be buildable in command line. The issue I'm having is that when I try to build native code in the platforms folder of the app using the $phonegap build ios command, I get a "hello world" version of the app that doesn't work when I open the generated .xcodeproj file in Simulator. None of the Cordova plugins transfer to the platforms folder, nor do my icon and splashscreen images. I can navigate around the menu in my app, but I can't click on anything and the geolocation doesn't work. This seems like a common problem, and I tried changing the lowercase "plugins" folder to "Plugins" and that didn't help.

I'm using Phonegap CLI 8.0.0 on both Windows 7 and OSX El Capitan 10.11.6 with Xcode 8. I'm not sure if I need to reconfigure something. Here is the app repository. Here is the config.xml:

`<?xml version='1.0' encoding='utf-8'?>

MetCon Weather Climate and Three Week Charts Levi Cecil

`

andersborgabiro commented 5 years ago

A question about CLI clearly has nothing to do with PGB, so don't expect too much in terms of answers here.

There are slight differences, so check the documentation and community for Cordova CLI. My experience is that you need to place config.xml above www and change references to resources accordingly.