iOS build failed

  • 1
  • Problem
  • Updated 4 years ago
iOS started giving us a failed build when we updated the app from our github account. We have gone through the documentation listed and still are having the same issue. I really need to get this resolved asap. We have been trouble shooting most of the day and have not figured out the solution.

Please advise.
Photo of Vanessa Byrem-Tangy

Vanessa Byrem-Tangy

  • 42 Posts
  • 0 Reply Likes
  • frustrated

Posted 4 years ago

  • 1
Photo of JesseMonroy650 (Volunteer)

JesseMonroy650 (Volunteer), Champion

  • 3325 Posts
  • 122 Reply Likes
@Vanessa,
I was looking at your past messages. A LOT has changed in two (2) years.

Pleas read the bold sentences in this FAQ. Then respond so we can deal with your issue.

Top Mistakes by Developers new to Cordova/Phonegap

Thanks
Jesse
Photo of Vanessa Byrem-Tangy

Vanessa Byrem-Tangy

  • 42 Posts
  • 0 Reply Likes
I reviewed this but I will also have the developer on my team that I am working with also review. I know that it is not a whitelist issue, we are going try to comment out all the plugins and add them back in to see if that may be the issue. We are using dreamweaver and phonegap build.

What I don't understand is up until yesterday this was not an issue with the ios build. As a matter of fact, not only did we have no issue with the ios build but it also generated a windows build. But now it only generates a failed ios build and a working android build. I also noticed that cli-5.2.0 seems to be coming up but was not there before? We are not using CLI.

I attached a screen shot of the app in our bd account. In addition, the log is not giving us any information on the error. This is what is in the log: Build Date: 2016-03-03 14:25:04 -0800

Any thoughts?

Photo of JesseMonroy650 (Volunteer)

JesseMonroy650 (Volunteer), Champion

  • 3325 Posts
  • 122 Reply Likes
When posting code, please use some HTML (like <code></code>). (see attached image)

FYI: Reviewing your message now. It appears you wanted to post the Error log. f you intended to do that, please repost.

Jesse

Photo of Vanessa Byrem-Tangy

Vanessa Byrem-Tangy

  • 42 Posts
  • 0 Reply Likes
Build Date: 2016-03-03 14:25:04 -0800

the error log that came back is not html... but I wrapped it in tags in case that helps.

The error log that renders is:

Build Date: 2016-03-03 14:25:04 -0800
Photo of Vanessa Byrem-Tangy

Vanessa Byrem-Tangy

  • 42 Posts
  • 0 Reply Likes
so it doesn't show any errors just the build date.
Photo of JesseMonroy650 (Volunteer)

JesseMonroy650 (Volunteer), Champion

  • 3325 Posts
  • 122 Reply Likes
1) What I don't understand is up until yesterday this was not an issue with the ios build. 2) As a matter of fact, not only did we have no issue with the ios build but it also generated a windows build. 3) But now it only generates a failed ios build and a working android build. 4) I also noticed that cli-5.2.0 seems to be coming up but was not there before? We are not using CLI.


@Vanessa,
1) If you did building, then something had to change. Otherwise, why rebuild? Please clarify.

2) When building, sometimes you need to set the build flag. There is a bug in the system - and we are not sure where it is at. Here is what you need to do.

Docs -> Configuring -> The Basics -> Platform Build Selection

Example Usage

<platform name="ios" />
<platform name="android" />
<platform name="winphone" />


3) When building for iOS you MUST always use a signing key for the Development version. (There is a different procedure for release) This might have turn off because one of two reason. 1. The signing key for development gets turned of after thirty (30) days. 2. When you went to rebuild, it might have reset the bug that make this situation happen.

4) AHHHH.. This appears to be your issue. In your config.xml, you need to set the phonegap-version.

This appears to be to basis of all your issues. FWIW: cli-5.2.0 is a *flag*. It indicate which Tool Release is in use. FWIW: the valid flags are available in documentation under

Docs -> Configuring -> Preferences -> Multi-Platform

3.0.0, 3.0.0, 3.1.0, 3.2.0, 3.3.0, 3.4.0, 3.5.0, 3.6.3, 3.7.0, cli-5.1.1, and cli-5.2.0

I should note ALL 3.X will no longer be available because Google will NOT accept any Phonegap version earlier than 4.1.1

Jesse
Photo of JesseMonroy650 (Volunteer)

JesseMonroy650 (Volunteer), Champion

  • 3325 Posts
  • 122 Reply Likes
ON #4, I want to note, IF YOU DO NOT SET THE FLAG, you get the default setting, which is cli-5.2.0.
Jesse
Photo of Vanessa Byrem-Tangy

Vanessa Byrem-Tangy

  • 42 Posts
  • 0 Reply Likes
so we are still in development with this app and in the final phase. So everytime we do changes we are updating our github and updating the code, which I assume rebuilds it to load up and test the changes on the devices.

We changed the phonegap-version earlier today and when we changed that it also broke the android app and we had to switch it back just to get it working on android again. What do you recommend that the version be switched to?

I will also check the signing key.
Photo of JesseMonroy650 (Volunteer)

JesseMonroy650 (Volunteer), Champion

  • 3325 Posts
  • 122 Reply Likes
This depends on what was your previous version.

If you previously, it was cli-5.1.1 - you are on a good track and we must find the exact error.

If you previously, it was 3.x or earlier, then you might need to make major changes. At the very least, you will need to apply the whitelist plugin and the associate parts.

Jesse
Photo of Vanessa Byrem-Tangy

Vanessa Byrem-Tangy

  • 42 Posts
  • 0 Reply Likes
So, we have commented out all the plugins, tested them and put them all back in and that did not resolve the issue.

we have also tried adding

so that is now showing up again.

We have been wracking our brains over this for 2 days now. Any suggestions?
Photo of Vanessa Byrem-Tangy

Vanessa Byrem-Tangy

  • 42 Posts
  • 0 Reply Likes
not sure why it didn't show you my html that I had put in... but we added all the recent versions to the config file to test each one and it did not resolve the issue...

However winphone is now showing up since we added that platform back into the config file.

PLEASE HELP!
Photo of Brett

Brett, OFFICIAL REP

  • 547 Posts
  • 54 Reply Likes
i would re-zip your app source code again. the server cannot unzip the archive.
Photo of Vanessa Byrem-Tangy

Vanessa Byrem-Tangy

  • 42 Posts
  • 0 Reply Likes
thank you. We re-zipped and uploaded and again and are still getting an iOS build error. But we are also now getting windows build errors.

Suggestions?
Photo of Vanessa Byrem-Tangy

Vanessa Byrem-Tangy

  • 42 Posts
  • 0 Reply Likes
We actually started the build process on our local using phonegap desktop app. Could this be the problem? Is phonegap desktop not compatible with build?
Photo of Brett

Brett, OFFICIAL REP

  • 547 Posts
  • 54 Reply Likes
still showing bad zip errors. i would ensure there are no directories and files that collide on case insensitive filesystems. 

(eg. /res/icon and /res/Icon)
Photo of JesseMonroy650 (Volunteer)

JesseMonroy650 (Volunteer), Champion

  • 3325 Posts
  • 122 Reply Likes
Vanessa,
post your config.xml I will look at it. OR make it available on a public website, like github, pastebin, etc.
Jesse

When posting code, please use some HTML (like <code></code>). (see attached image)

Photo of Vanessa Byrem-Tangy

Vanessa Byrem-Tangy

  • 42 Posts
  • 0 Reply Likes
Thank you for you quick responses. After going through all the directories we were able to isolate some files that were causing the build errors. Those files have now been fixed and both the iOS and windows build are now working correctly!

Success!
Photo of JesseMonroy650 (Volunteer)

JesseMonroy650 (Volunteer), Champion

  • 3325 Posts
  • 122 Reply Likes
@Vanessa,
can you please let us know what the exact issue were so we could help other developers that might fall into the same pitfall.
Jesse
Photo of JesseMonroy650 (Volunteer)

JesseMonroy650 (Volunteer), Champion

  • 3325 Posts
  • 122 Reply Likes
@Vanessa,
ON Desktop App, it is a learning and testing tool. IT SHOULD NOT BE part of your workflow.

Desktop App is a PITA. Here is my canned message on that.
Canned Message
I need to blog this, so i don't have to repeat this answer again and again.

You cannot use Phonegap Desktop App with Phonegap Build.

Phonegap Desktop App uses Phonegap CLI, so if you want to use Phonegap Desktop App you need to stay with Phonegap CLI.

If you want to use Phonegap Build, then forget what you have done and start over _OR_ make Minor modifications to move Phonegap Desktop App to Phonegap Build. To be clear, the difference is minor, but enough to keep tripping you.

Also, you will not be able to use Phonegap Developer App as that is meant to work with Phonegap Desktop App. You cannot use either CLI or Build with Developer App.

FWIW: I've been trying to get Phonegap to fix this. Here is the report on the issue.

Let me know what you want to do.

Jesse
Photo of Vanessa Byrem-Tangy

Vanessa Byrem-Tangy

  • 42 Posts
  • 0 Reply Likes
Hi Jesse,

Thank you for that explanation. I wish that was more clearly stated in the documentation. It seems there are a lot do's and don'ts because it is easy when you are newer to this to get the platforms mixed up and it takes a lot of time searching through forums to try to figure that stuff out.

When we first started this we used the desktop app to try it out but ended up building the app in dreamweaver and saving our code to github as we made changes. Then we would upload the files to build. But this is very helpful information to know.

As for what was causing the build error. After inspecting the files it came to our attention that there were a lot of icon files that somehow ended up being duplicated but the duplicated files were empty files that were 5 bytes each. We are not sure where the files actually ended up coming from, maybe a glitch during an upload or something... but once they were deleted everything was corrected and the build for iOS and Windows was able to successfully complete.
Photo of JesseMonroy650 (Volunteer)

JesseMonroy650 (Volunteer), Champion

  • 3325 Posts
  • 122 Reply Likes
@Vanessa,
On your issue, WOW! That is annoying.
FWIW: sometimes .png files have issues when being saved.

On the rest, Yes - I'm almost weekly writing a bug reports.

This is the nature of Open Source. As a whole people take, but rarely give back. The bug reports, like yours, help us find transient errors that should caught be the developer, but often other persons - such Petra V., Chris Griffith, jcesarmobile and I are the firewalls.

In short, somewhere between laziness, incompentence, and oversight sit us.

Best of Luck
Jesse