Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

iOS Build Error
Started by bamazy Aug 23 2019 02:54 AM

32 replies to this topic
[TOPIC CONTROLS]
Page 1 of 2 1 2
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

bamazy

[GLOBAL: userInfoPane.html]
bamazy
  • Contributor

  • 109 posts
  • Corona SDK

Hello, all. 

 

I'm having problem with building for iOS with the version 2019.3517. I tried to build and copy to the device a few times but I was not successful. Then I tried to build and upload to the AppStore, I had errors again. Then I tried to build and open with a simulator, had no success. 

 

Logs from the last try: https://pastebin.com/P2QymiDR

 

By the way, builds take more than 10 minutes. Is it normal? I have very fast internet. 



[TOPIC: post.html]
#2

agramonte

[GLOBAL: userInfoPane.html]
agramonte
  • Corona Geek

  • 1,256 posts
  • Corona SDK

Are you trying to build for iOS Simulator? Looks like the Facebook Audience network library does not have the i386 bits. Build and deploy to device and it should work or remove the FAN plugin from the list of plugin for the iOS Simulator.



[TOPIC: post.html]
#3

bamazy

[GLOBAL: userInfoPane.html]
bamazy
  • Contributor

  • 109 posts
  • Corona SDK

@agramonte, the logs are from the build for iOS Simulator. Before that I tried to build and deploy to a device, build and upload to App Store but none worked. 



[TOPIC: post.html]
#4

agramonte

[GLOBAL: userInfoPane.html]
agramonte
  • Corona Geek

  • 1,256 posts
  • Corona SDK

I suspect the other error would be different. Can you post those? The error you posted is specific to FAN plugin not having i386 portion for iOS Simulator.



[TOPIC: post.html]
#5

bamazy

[GLOBAL: userInfoPane.html]
bamazy
  • Contributor

  • 109 posts
  • Corona SDK

@agramonte, I commented out the FAN plugin and was able to build. But this time I got error on startup on both device and simulator. I think the problem was related to the problem on this link: https://forums.coronalabs.com/topic/76047-ios-appodeal-fails-to-build/

 

I added the plugin.notification plugin and built it. Now it works. I will enable the FAN plugin and build again to see if it works with that one. I'll do that tomorrow as it's late and I don't want to wait for half an hour more. By the way, does your mac also take half an hour for a build to finish?



[TOPIC: post.html]
#6

agramonte

[GLOBAL: userInfoPane.html]
agramonte
  • Corona Geek

  • 1,256 posts
  • Corona SDK

Yes if it finishes. Problems downloading plugins usually. It might be my fiber connection to the internet. 0_o



[TOPIC: post.html]
#7

bamazy

[GLOBAL: userInfoPane.html]
bamazy
  • Contributor

  • 109 posts
  • Corona SDK

I was successful to build and copy to device. It's ok now but this time I want to build and copy to Simulator in order to take screenshots. I tried two times without having success. I also tried uploading to App Store, it keeps giving me this message: "Only apps built with distribution profiles can be sent to the App Store. Choose a provisioning profile signed with an "iPhone Distribution" certificate and note that the provisioning profile used should not specify any devices (i.e. is not "ad hoc")." However, I have already downloaded the distribution profile. I deleted all the provisioning files and downloaded and installed again. I still get the same error. 



[TOPIC: post.html]
#8

bamazy

[GLOBAL: userInfoPane.html]
bamazy
  • Contributor

  • 109 posts
  • Corona SDK

Anyone knows how to solve the problem?  :wacko:



[TOPIC: post.html]
#9

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,309 posts
  • Enterprise

Are you copying the profile to your ~/Library/MobileDevice/Provisioning Profiles/ folder and restarting Corona?

 

Does Corona present you with the distribution profile to use?

 

Keep in mind Apple has three types of profiles:

 

Developer

Distribution (AdHoc)

Distribution (Store)

 

In their interface, they only show two and when you go into the Distribution one, you can pick for the store or AdHoc, but if you don't name your profile indicating that it's AdHoc or Store, there is no way to know because it will just say distribution. I always make sure to explicitly name my profiles:

 

My Awesome Game (Developer)

My Awesome Game (AdHoc)

My Awesome Game (Store)

 

that way there is no ambiguity on which distribution profile is which.

 

Now some people will let Xcode manage the download and storage of the profiles. But when you do, you end up with filenames like:

f3e44b5f-c6d9-41e4-9f14-7d0cf6dee834.mobileprovision

Where as if you, from the developer portal choose "Download", you get names like:

Alien_Invasion_AdHoc.mobileprovision
Alien_Invasion_iOS_Distribution.mobileprovision

But you have to be a little command line friendly or know how to use finder to get to ~/Library since Apple tries really hard to hide that folder from Finder. The command line is quite easy to do for this. Download your profiles using the Download folder. They **should** end up in your ~/Downloads folder unless you've told your browser to do something else. I'm assuming you've not changed this.

 

Open the Terminal (click on the Spotlight magnifying glass and type "terminal" and hit enter. In the window that opens, type:

cd ~/Library/MobileDevice/Provisioning\ Profiles
mv ~/Downloads/*.mobileprovision .
ls -l

This will take you the right folder, move the files you downloaded from Downloads to the right place

and then the ls -l will give you a list of the files that are there.

 

Close the terminal, restart Corona and all your current profiles should be available to choose. If you named them appropriately you should be able to see them in the directory list and with the more human readable name you used in the developer profile.

 

Make sure you pick a "For the Store" profile and you should be good to go.

 

Rob



[TOPIC: post.html]
#10

bamazy

[GLOBAL: userInfoPane.html]
bamazy
  • Contributor

  • 109 posts
  • Corona SDK

Rob, thanks a lot for a long reply and help. 

 

I tried deleting everything in ~/Library/MobileDevice/Provisioning Profiles/ folder and downloading from Developer Console. I have never created Ad Hoc profile but Developer and Distribution profiles. Moreover, I name the profiles as you mentioned in order to prevent confusion. 

 

I keep downloaded profiles under the folder named "Mobile Provisions". I tried to delete and install profiles again while writing this reply. Then I restarted Corona, chose the Distribution profile for the build and chose "Send to App Store" option. This time it gives me this:

 

Corona Simulator wants to access key "Application Loader" in your keychain. To allow this, enter the "login" keychain password.

 

When I write my password for Mac, it gives me the same "ad hoc" related error.

 

A few days ago after being unsuccessful to build and upload to App Store, I tried to use Application Loader but I noticed that it asks me to sign in. It was normal as I had to format my Mac after upgrading to Mac OS Beta version.

 

After logging in to Apple Developer portal it asked me to generate a one-time password for the Application Loader. I did so, downloaded and installed it. 

 

iOS SDK version is 12.4 



[TOPIC: post.html]
#11

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,309 posts
  • Enterprise

Can you copy/pasted exact messages you're getting. We would also like to see screen shots of all of these steps. I can't see your developer portal where you've created  the profiles. You can copy/paste or screen shot your ~/Library/MobileDevice/Provisioning Profiles/ folder. Screen shots of where it's asking for your password and the error you get from it.

 

You can add screen shots by clicking the "More Reply Options" button beside the "Post" button and it will let you attach images.

 

Rob



[TOPIC: post.html]
#12

bamazy

[GLOBAL: userInfoPane.html]
bamazy
  • Contributor

  • 109 posts
  • Corona SDK

Rob, the screen shots are attached to the post. I tried a few times but could not produce the password asking screen again. I deleted all the profiles from the ~/Library/MobileDevice/Provisioning Profiles/ folder and then added again by clicking on the downloaded profile files. I even created a new app and new provisioning profiles so that it might ask the password again. 

Attached Files



[TOPIC: post.html]
#13

bamazy

[GLOBAL: userInfoPane.html]
bamazy
  • Contributor

  • 109 posts
  • Corona SDK

By the way, I tried to use Application Loader to upload to the App Store but I can not select the iOS build from the folder. Is it possible that it is related to the problem?



[TOPIC: post.html]
#14

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,309 posts
  • Enterprise

Can you open up the profile to see the details and provide a screenshot similar to:

 

 

Attached File  Screen Shot 2019-08-27 at 11.09.52 AM.png   253.4KB   0 downloads

 

 

Rob



[TOPIC: post.html]
#15

bamazy

[GLOBAL: userInfoPane.html]
bamazy
  • Contributor

  • 109 posts
  • Corona SDK

Rob, it is the screen shot for me. 

Attached Files



[TOPIC: post.html]
#16

bamazy

[GLOBAL: userInfoPane.html]
bamazy
  • Contributor

  • 109 posts
  • Corona SDK

Rob, I created a new Identifier, then created Profiles for Development and Distribution, then downloaded and installed them. Then I tried to build the app and to choose "Send to App Store", I got the password asking screen again. I am attaching the screen. When I type the password I use to login to Apple Developer website, the login screen shakes which means the password is not correct. The same thing happens when I use the one-time password I generated for Application Loader. However, when I use my password for the Mac login, it shows me the "Only apps built with distribution profiles can be sent to the App Store" message. 

Attached Files



[TOPIC: post.html]
#17

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,309 posts
  • Enterprise

Are you checking "Always Allow" when you enter the password?



[TOPIC: post.html]
#18

bamazy

[GLOBAL: userInfoPane.html]
bamazy
  • Contributor

  • 109 posts
  • Corona SDK

With the last one, I did not but the previous ones I used "Always Allow" option too. 



[TOPIC: post.html]
#19

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,309 posts
  • Enterprise

Just out of curiosity have you launched and run Xcode since the last time it was updated?



[TOPIC: post.html]
#20

bamazy

[GLOBAL: userInfoPane.html]
bamazy
  • Contributor

  • 109 posts
  • Corona SDK

Rob, when I click on the downloaded provisioning files, it opens Xcode, so, I think, that should be considered "yes" for your question.



[TOPIC: post.html]
#21

bamazy

[GLOBAL: userInfoPane.html]
bamazy
  • Contributor

  • 109 posts
  • Corona SDK

I still haven't managed to solve the problem. So I wanted to try uploading with the Application Loader. But it says there is no provisioning file inside it: 

ERROR ITMS-90174: "Missing Provisioning Profile - Apps must contain a provisioning profile in a file named embedded.mobileprovision."

Anyone has idea how can I make sure the provisioning file is inside the IPA file? By the way, I created the IPA file by creating a folder and putting Application file and dSYM file generated by Corona Build inside the folder, compressing it and changing the extension to .ipa



[TOPIC: post.html]
#22

bamazy

[GLOBAL: userInfoPane.html]
bamazy
  • Contributor

  • 109 posts
  • Corona SDK

I deleted Xcode and re-installed it, delete Corona and re-installed it, it's still the same error when I try to select "Send to App Store"  :(



[TOPIC: post.html]
#23

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,309 posts
  • Enterprise

Open up your terminal and run this command:

defaults write com.coronalabs.Corona_Simulator debugBuildProcess -int 5

This will cause Corona to emit build log in much greater detail. I don't know if it will help or not, but it may give more information to help solve this.

 

Use a service like pastebin.com to copy the entire build log and paste it in there then post the link here.

 

Rob



[TOPIC: post.html]
#24

bamazy

[GLOBAL: userInfoPane.html]
bamazy
  • Contributor

  • 109 posts
  • Corona SDK

Rob, as soon as I click on the Build button, I get the same error when I try to build and upload to App Store. 

 

Now I am trying to build with checking "Show in Finder" option, and then will try to convert it to ipa file and upload using Application Uploader. I will provide the build process log when it's finished. 



[TOPIC: post.html]
#25

bamazy

[GLOBAL: userInfoPane.html]
bamazy
  • Contributor

  • 109 posts
  • Corona SDK

I tried Application Uploader but it gave me error again. 

ERROR ITMS-90174: "Missing Provisioning Profile - Apps must contain a provisioning profile in a file named embedded.mobileprovision."

The logs are here: https://pastebin.com/0nLUWyLj

 

I also tried putting the provisioning file inside ipa file and changing the name to embedded.mobileprovision but it did not help either. 




[topic_controls]
Page 1 of 2 1 2
 
[/topic_controls]