IOS PhoneGap Build

If you have questions or if you want to share your opinion about Aware IM post your message on this forum
Post Reply
Markfre1
Posts: 221
Joined: Sun Mar 11, 2012 10:15 pm
Location: United States

IOS PhoneGap Build

Post by Markfre1 »

Has anyone been able to use PhoneGap to build an IOS app. I am able to build Android, and only 1 time was I able to build IOS. (Have all the proper keys). I made a minor modification to the config.xml to use the ICON. Other than that no other modifications. I just tried even using an unmodified config.xml. No luck and wasted 2 weeks. If anyone has done an IOS build successfully please let me know what you think is wrong. Spent months building the app and now can not publish it. Quite frustrating. Below is the error I keep getting.

Thank you, Mark F

** ARCHIVE FAILED **


The following build commands failed:
CompileAssetCatalog /Library/Developer/Xcode/DerivedData/My_Art_Fusion-cgmfujhqrmyvrtdjyezbydwxctlu/Build/Intermediates.noindex/ArchiveIntermediates/My\ Art\ Fusion/InstallationBuildProductsLocation/Applications/My\ Art\ Fusion.app My\ Art\ Fusion/Images.xcassets
(1 failure)
Error: xcodebuild: Command failed with exit code 65
at ChildProcess.whenDone (/private/project/cordova/node_modules/cordova-common/src/superspawn.js:135:23)
at ChildProcess.emit (events.js:182:13)
at maybeClose (internal/child_process.js:962:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5)
chris29
Posts: 173
Joined: Sat Feb 06, 2010 1:45 am
Location: Australia

Re: IOS PhoneGap Build

Post by chris29 »

what does your config.xml look like?
Version 8.5 - Windows using MySql 8 and SQL Server - 64bit
idpSteve
Posts: 201
Joined: Thu Jul 27, 2017 6:13 am
Location: Johannesburg, South Africa
Contact:

Re: IOS PhoneGap Build

Post by idpSteve »

Hi Mark,

From my experience:

There was a change to iOS submission requirements on the 30th of April. You now are required to build apps with iOS SDK 13 and can no longer use UIWebView in your apps anymore- you are now required to use WKWebView instead.

To build with iOS SDK 13 you must build your apps locally (requiring a mac) by using Cordova CLI and xcode.

There are various plugins to switch from UIWebView to WKWebView, I haven't gotten these to work properly though- I put this on hold figuring there would be more information available as more people struggle with these changes... I can see my login page, and see requests when I attempt to login but I get continuous 'Connection failure. Status: error'.

With the iOS SDK requirement you can no longer use PGB, it is no longer being updated.

Please let us know if you come across anything interesting and get this fixed!
aware_support
Posts: 7523
Joined: Sun Apr 24, 2005 12:36 am
Contact:

Re: IOS PhoneGap Build

Post by aware_support »

You need to use Monaca or Ionic now.

karelh was able to successfully run his app under Monaca for iOS and WKWebView. PM him for details.

In the meantime we are working on Monaca-friendly support for the next version
Aware IM Support Team
Markfre1
Posts: 221
Joined: Sun Mar 11, 2012 10:15 pm
Location: United States

Re: IOS PhoneGap Build

Post by Markfre1 »

This is my config.xml.

The thing was I did get it to build once but maybe it was before April 30th. I have other comments in followup post.

<?xml version="1.0" encoding="UTF-8"?>
<widget xmlns = "http://www.w3.org/ns/widgets" xmlns:gap = "http://phonegap.com/ns/1.0" id = "com.micronetics.mobile" version= "1">
<name>My Art Fusion</name>
<author>MF</author>
<gap:platform name="android" />
<gap:platform name="ios" />
<preference name="phonegap-version" value="cli-9.0.0" />
<preference name="orientation" value="default" />
<preference name="target-device" value="universal" />
<preference name="fullscreen" value="true" />
<preference name="prerendered-icon" value="true" />
<preference name="ios-statusbarstyle" value="black-opaque" />
<preference name="detect-data-types" value="true" />
<preference name="exit-on-suspend" value="false" />
<preference name="auto-hide-splash-screen" value="true" />
<preference name="disable-cursor" value="false" />
<preference name="android-installLocation" value="auto" />
<plugin name="cordova-plugin-whitelist" spec="latest" />
<plugin name="cordova-plugin-camera" spec="latest" />
<variable name="CAMERA_USAGE_DESCRIPTION" value="Allow the app to use your camera" />
<variable name="PHOTOLIBRARY_USAGE_DESCRIPTION" value="Allow the app to access your photos" />
<plugin name="cordova-plugin-file" spec="latest" />
<plugin name="cordova-plugin-file-transfer" spec="latest" />
<plugin name="cordova-plugin-geolocation" spec="latest" /> />
<icon src="icon.png" />
<access origin="*"/>
<allow-intent href="http://*/*" />
<allow-intent href="https://*/*" />
<allow-intent href="tel:*" />
<allow-intent href="sms:*" />
<allow-intent href="mailto:*" />
<allow-intent href="geo:*" />
</widget>
Markfre1
Posts: 221
Joined: Sun Mar 11, 2012 10:15 pm
Location: United States

Re: IOS PhoneGap Build

Post by Markfre1 »

ipdsteve,

Unfortunately, I have no clue on how to do what you suggested, but also you mentioned that it did not work. Vlad mentioned about Monaca, but also have no clue on how to do that either..

I will reread the post because Vlad mentioned someone did it. The reason I use AIM is to take away the complexity of these types of things. AIM if wants to be viable for mobile, needs to have a solution like it did previously with Phonegap.

Hopefully, AIM can provide the steps to do this because mobile is everything these days.

If you come up with a solution that works, please let me know and in the meantime, I will see what I can do.

Thank you,

Mark F
aware_support
Posts: 7523
Joined: Sun Apr 24, 2005 12:36 am
Contact:

Re: IOS PhoneGap Build

Post by aware_support »

These lines are not part of a standard Aware IM build:
<variable name="CAMERA_USAGE_DESCRIPTION" value="Allow the app to use your camera" />
<variable name="PHOTOLIBRARY_USAGE_DESCRIPTION" value="Allow the app to access your photos" />

Try removing them and see if you get rid of the error.
Aware IM Support Team
Markfre1
Posts: 221
Joined: Sun Mar 11, 2012 10:15 pm
Location: United States

Re: IOS PhoneGap Build

Post by Markfre1 »

I have tried every which way. Here is the config. Very simple: Below the config.xml at the bottom, is the error I get each time. The log is a mile long and there seems to be a lot of warnings regarding the icon files.

HERE IS THE CONFIG.XML
<?xml version="1.0" encoding="UTF-8"?>
<widget xmlns = "http://www.w3.org/ns/widgets" xmlns:gap = "http://phonegap.com/ns/1.0" id = "com.micronetics.mobile" version= "1">
<name>My Art Fusion</name>
<author>MF</author>
<gap:platform name="android" />
<gap:platform name="ios" />
<preference name="phonegap-version" value="cli-9.0.0" />
<preference name="orientation" value="default" />
<preference name="target-device" value="universal" />
<preference name="fullscreen" value="true" />
<preference name="prerendered-icon" value="true" />
<preference name="ios-statusbarstyle" value="black-opaque" />
<preference name="detect-data-types" value="true" />
<preference name="exit-on-suspend" value="false" />
<preference name="auto-hide-splash-screen" value="true" />
<preference name="disable-cursor" value="false" />
<preference name="android-installLocation" value="auto" />
<plugin name="cordova-plugin-whitelist" spec="latest" />
<plugin name="cordova-plugin-camera" spec="latest" />
<plugin name="cordova-plugin-file" spec="latest" />
<plugin name="cordova-plugin-file-transfer" spec="latest" />
<plugin name="cordova-plugin-geolocation" spec="latest" /> />
<icon src="icon.png" />
<access origin="*"/>
<allow-intent href="http://*/*" />
<allow-intent href="https://*/*" />
<allow-intent href="tel:*" />
<allow-intent href="sms:*" />
<allow-intent href="mailto:*" />
<allow-intent href="geo:*" />
</widget>
---------------------
HERE IS THE BOTTOM OF THE LOG.

** ARCHIVE FAILED **


The following build commands failed:
CompileAssetCatalog /Library/Developer/Xcode/DerivedData/My_Art_Fusion-epilbrhllfhokadigmjrgumyybhy/Build/Intermediates.noindex/ArchiveIntermediates/My\ Art\ Fusion/InstallationBuildProductsLocation/Applications/My\ Art\ Fusion.app My\ Art\ Fusion/Images.xcassets
(1 failure)
Error: xcodebuild: Command failed with exit code 65
at ChildProcess.whenDone (/private/project/cordova/node_modules/cordova-common/src/superspawn.js:135:23)
at ChildProcess.emit (events.js:182:13)
at maybeClose (internal/child_process.js:962:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5)
aware_support
Posts: 7523
Joined: Sun Apr 24, 2005 12:36 am
Contact:

Re: IOS PhoneGap Build

Post by aware_support »

Quite a few people have successfully built an iOS app. I will email you the config.xml of one customer who did it (he is not on the forum)
Aware IM Support Team
Markfre1
Posts: 221
Joined: Sun Mar 11, 2012 10:15 pm
Location: United States

Re: IOS PhoneGap Build

Post by Markfre1 »

OK Great. Testing now and left off icon and it built. So something wrong using the icon. Please send me the config.

All we did was add the icon statement and have icon.png in the folder.

Should be using proper size (form previous setup) but should not make a difference.

But it seems something with icon.

If I see your config.xml, maybe that will help and any info regarding the icon will help also. Thank you.

Mark F
Markfre1
Posts: 221
Joined: Sun Mar 11, 2012 10:15 pm
Location: United States

Re: IOS PhoneGap Build

Post by Markfre1 »

Got it working. It seems the icon has to be 1024 x 1024 which the phonegap docs said 48 x 48. Have not downloaded to an IPhone yet for testing.

So changes were

<gap:platform name="ios" />
<platform name="ios">
<icon src="icon.png"/>

</platform>

And used a 1024 x 1024 icon.

I would like to see the config.xml you are using. Also any confirmation on the icon size would be useful as 1024 x 1024 seems large.

Thank you, Mark F
aware_support
Posts: 7523
Joined: Sun Apr 24, 2005 12:36 am
Contact:

Re: IOS PhoneGap Build

Post by aware_support »

I have emailed the file to you
Aware IM Support Team
Post Reply