TheGameCreators / AGK-Studio

3 stars 1 forks source link

[0.95][BUG][MacOS] IOS IPA file not valid #433

Closed crushroll closed 4 years ago

crushroll commented 5 years ago

Whenever I try to export an IPA file, it sometimes works - most of the time it hangs. When it does work, and I copy the file to an iPad, it doesn't install properly just showing the missing app icon (the circles with the crossed lines through it).

If I load the project into the latest AGK and export it, it is much faster and works perfectly.

SpaceDreamStudios commented 5 years ago

Same here, with the current version (V2019.08.05). Posted also in the Forum, but no response yet!? Would be great, if somebody can pick that up please, because without an working IOE export function, the whole AGK Studio is going to be useless to me know, unfortunately. By the way, have the same issue with AGK2 too, now. If I try to install the IPA file, via XCode, following message comes up: "Unable to install ........." ".......does not contain an application bundle, so it cannot be installed on Stephan’s iPad" May be that helps, finding the reason......

crushroll commented 5 years ago

Is there timeframe for this fix, it's pretty important? For some reason I cannot generate IPA from AGK Classic (see my submission on the AGC Classic forum), so I cannot test anything on an iPad at the moment. Any help would be appreciated, thanks.

neiltking commented 5 years ago

I am having the same issue. If I use a valid Adhoc Provisioning Profile in AppGameKit Studio it seems to export okay but the installed IPA has the broken icon and fails to work. The same project and Adhoc Provisioning Profile exported from AppGameKit Classic works perfectly on an iPhone.

crushroll commented 5 years ago

Exactly the same issue as me.

On Mon., 9 Sep. 2019, 7:50 pm neiltking, notifications@github.com wrote:

I am having the same issue. If I use a valid Adhoc Provisioning Profile in AppGameKit Studio it seems to export okay but the installed IPA has the broken icon and fails to work. The same project and Adhoc Provisioning Profile exported from AppGameKit Classic works perfectly on an iPhone.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/TheGameCreators/AGK-Studio/issues/433?email_source=notifications&email_token=ADSTR7XUWXRTHGODYADJESTQIYL45A5CNFSM4IA3WMXKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6G524A#issuecomment-529390960, or mute the thread https://github.com/notifications/unsubscribe-auth/ADSTR7R75CRINUKEMKAHC43QIYL45ANCNFSM4IA3WMXA .

rvanner commented 5 years ago

Hi, We recently fixed exporting on Mac in the V2019.09.27 build.

It would seem some users are still having issues (although it is fixed for many others).

I asked Paul about this and he reported back to me with this yesterday:

"Just tested version 2019.09.27 and it is producing valid IPAs here. I used an AdHoc profile and installed it on a device, is he using an AdHoc or Store profile?"

Can you all confirm that it's still an issue with V2019.09.27 and if so, what methods have not worked for you? Ideally, could you make a video showing it going wrong?

crushroll commented 5 years ago

It still doesn't work for me. After creating I drag the file into iTunes, and it copies onto iPad. The grey installing icon shows up on the iPad, then after the installing white circle starts it sweeps from 12 o'clock, it literally gets as far as 1 o'clock and stops, leaving the grey install icon, which you can't press.

I just checked on AGK Classic, and it won't install properly for that either. It gets as far at 6 o'clock on the install white circle, then stops leaving grey install icon.

My environment is: MacBook Pro Mojave 10.14.6 iPad Air iOS 12.4.2 Xcode 11.0 (11A420a)

SpaceDreamStudios commented 5 years ago

Same here, like crushroll described it, regarding Studio. Additionally, my AGK Classic (Build 2019.09.27), don't even start on my MacBookAir. Following message comes up: Screenshot 2019-10-04 19 41 50 The error report looks like: Screenshot 2019-10-04 19 44 49 My system configuration is: Screenshot 2019-10-04 19 53 13

neiltking commented 5 years ago

Sorry for the delay. Just tried it again with the newest version of AGK Studio, but got the same result.

Using AGK Studio V2019.09.27 and a valid Adhoc certificate. When installing the IPA file onto an iPhone 5s it results in the grey (broken) icon which doesn't run. The IPA file is 9.2MB in size and built on a Mac Mini running High Sierra 10.13.6 For comparison I built the same app using the same Adhoc certificate in AGK Classic (2019.01.18) and it works fine on the iPhone 5s, so the certificate and code is fine. That IPA file was 7.4MB in size.

I would just use AGK Classic but I need to make changes to the Info.plist file before I can release it on the Apple Store, which I cannot do in Classic.

rvanner commented 5 years ago

Hi,

We will be looking into this next week. Are you around next week to help test any builds we make?

Rick

On Tue, 29 Oct 2019 at 17:43, neiltking notifications@github.com wrote:

Sorry for the delay. Just tried it again with the newest version of AGK Studio, but got the same result.

Using AGK Studio V2019.09.27 and a valid Adhoc certificate. When installing the IPA file onto an iPhone 5s it results in the grey (broken) icon which doesn't run. The IPA file is 9.2MB in size and built on a Mac Mini running High Sierra 10.13.6 For comparison I built the same app using the same Adhoc certificate in AGK Classic (2019.01.18) and it works fine on the iPhone 5s, so the certificate and code is fine. That IPA file was 7.4MB in size.

I would just use AGK Classic but I need to make changes to the Info.plist file before I can release it on the Apple Store, which I cannot do in Classic.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/TheGameCreators/AGK-Studio/issues/433?email_source=notifications&email_token=AALPC2JHEOEN3VOMR3ZDL2DQRBY4BA5CNFSM4IA3WMXKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECROI5A#issuecomment-547546228, or unsubscribe https://github.com/notifications/unsubscribe-auth/AALPC2NFAPO5TTSP4Q5TIWDQRBY4BANCNFSM4IA3WMXA .

-- Rick Vanner Development Director The Game Creators Ltd www.thegamecreators.com Easy Game Creation Tools; AppGameKit - www.appgamekit.com GameGuru - www.game-guru.com Developer of the UK's #1 Theory Test App! www.drivingtestsuccess.com/app

crushroll commented 5 years ago

Yes. Thanks

On Wed., 30 Oct. 2019, 7:41 pm Richard Vanner, notifications@github.com wrote:

Hi,

We will be looking into this next week. Are you around next week to help test any builds we make?

Rick

On Tue, 29 Oct 2019 at 17:43, neiltking notifications@github.com wrote:

Sorry for the delay. Just tried it again with the newest version of AGK Studio, but got the same result.

Using AGK Studio V2019.09.27 and a valid Adhoc certificate. When installing the IPA file onto an iPhone 5s it results in the grey (broken) icon which doesn't run. The IPA file is 9.2MB in size and built on a Mac Mini running High Sierra 10.13.6 For comparison I built the same app using the same Adhoc certificate in AGK Classic (2019.01.18) and it works fine on the iPhone 5s, so the certificate and code is fine. That IPA file was 7.4MB in size.

I would just use AGK Classic but I need to make changes to the Info.plist file before I can release it on the Apple Store, which I cannot do in Classic.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub < https://github.com/TheGameCreators/AGK-Studio/issues/433?email_source=notifications&email_token=AALPC2JHEOEN3VOMR3ZDL2DQRBY4BA5CNFSM4IA3WMXKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECROI5A#issuecomment-547546228 , or unsubscribe < https://github.com/notifications/unsubscribe-auth/AALPC2NFAPO5TTSP4Q5TIWDQRBY4BANCNFSM4IA3WMXA

.

-- Rick Vanner Development Director The Game Creators Ltd www.thegamecreators.com Easy Game Creation Tools; AppGameKit - www.appgamekit.com GameGuru - www.game-guru.com Developer of the UK's #1 Theory Test App! www.drivingtestsuccess.com/app

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/TheGameCreators/AGK-Studio/issues/433?email_source=notifications&email_token=ADSTR7UGZGEZUK25GV4JDHLQRFCDBA5CNFSM4IA3WMXKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECTKWQI#issuecomment-547793729, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADSTR7VDH2RHCVZLG3BPW6DQRFCDBANCNFSM4IA3WMXA .

neiltking commented 5 years ago

Thanks Rick. I will certainly try to make myself available next week to test your new builds. Neil.

plemsoft commented 5 years ago

Hi all , i think we have mixed problems here , so if you all could try this first it would really help me :)

Install Apple configurator 2 and validate your provisions files. here is a video how to do it:

https://drive.google.com/file/d/12_NwYXWRJJBOw9fq8h4PsGGUv6S2x7bp/view?usp=sharing

Let me know the results. (This will help me before i dig deeper into the code).

crushroll commented 5 years ago

Hi, I tried Apple configurator 2 as per the above message & video. My adhoc profile was all good. I tried exporting a new IPA. First try hung AGK Studio. Second try managed to create one, which I loaded into Apple configurator 2, and came up with the icon, but was greyed, i.e. I couldn't run it. See attached image. codeycodey_ipad_icon

neiltking commented 5 years ago

Unfortunately I cannot install Apple Configurator 2 on my Mac Mini. Sadly it requires 10.14.6 as a minimum and my Mac Mini can only go up to macOS High Sierra 10.13.6 :-(

plemsoft commented 5 years ago

Thanks for the feedback , could you both try to locate this folder on your systems:

/Users/YOURUSERNAME/Library/Application Support/AgkStudio/build_tmp

Let me know if this folder exists on your systems.

If it do: Just delete this folder , and try to export a new ipa , and let me know the result.

neiltking commented 5 years ago

I've had a look and after discovering it cannot be browsed to using "Finder" I used a terminal window. It exists all the way up to the "AgkStudio" folder but there is no "build_tmp" in there. Not even a hidden folder.

crushroll commented 5 years ago

Same, no such folder

SpaceDreamStudios commented 5 years ago

Same here, no such folder and profile is valid.

plemsoft commented 5 years ago

@SpaceDreamStudios Sorry to hear your having trouble with your device , you should be able to "update" it without removing the content , try to follow this doc: https://support.apple.com/en-us/HT201263

plemsoft commented 5 years ago

@All , Thanks for the info. I made a debug version that are able to log everything about your ipa export.

Mac Debug Version: (please use lastest version , below ).

Just unzip it anywhere and run it.

When you generate the .ipa , please make sure to check "Generate Log File".

mac-logfile

The log will be generated in the same place as your .ipa , just called myapp.ipa.log.

Please e-mail this log to me at : plemsoft@plemsoft.com , or upload it here, also let me know if the generated ipa works on your devices :)

@crushroll You sometimes have a freeze, if this should happen could you sent me the .log (it will exists even if the .ipa is not generated).

SpaceDreamStudios commented 5 years ago

Wasn't able to restore my iPad, by myself, but Apple store was. So everything is fine again. Was a close call ;) Here comes the log-file: ProfileTrainerNEW2.ipa.log Trying to install the ipa, brings the same result, as before. Grey app icon (like target disk) and app is not starting with the message: "not able to install"

plemsoft commented 5 years ago

@SpaceDreamStudios Happy to hear you fixed your device :) , could you e-mail me the failing .ipa so i can compare with the log email: plemsoft@plemsoft.com

plemsoft commented 5 years ago

@All

AgkStudio-mac-debug3.zip: (please try latest version below)

This version will log more information:

To enable the debug check boxes. While your in the "IPA Export" window , select "Help->About".

Please check "Keep buildtmp After Export" and "Generate Log File".

After this, e-mail me the new log file and the .ipa that failed.

e-mail: plemsoft@plemsoft.com

Thanks for your help :)

plemsoft commented 5 years ago

@All

New Mac Test Version - AgkStudio-2019-11-08: https://drive.google.com/file/d/18PsJ8wcPMwe8uOd1XRydKktvphiNOJdd/view?usp=sharing

This will fix the issues i have seen in the .ipa and .log i have received, please try this version and let me know if it fix your problems, Thanks.

If you did not e-mail me your .log and .ipa i cant say if this will also solve your issue, but give it a try :)

neiltking commented 5 years ago

Hi Preben. I have just tried version 2019-11-08 and that has worked for me! Many thanks for looking into this. Am I okay to publish IPA files to the store from this version or should I wait until an official release?

plemsoft commented 5 years ago

@neiltking Thanks for reporting back , and yes the IPA is ready for you to publish.

SpaceDreamStudios commented 5 years ago

I don't know, I still have the same problems, even new Mac Test Version.... Tried all day, in different variations.... Need to send you my ipa and provisioning profile, to check.

plemsoft commented 5 years ago

@All got feedback from everyone here that its now working for all.

Except SpaceDreamStudios still have a problem with a icon , but that is not related to this, so i will mark this as fixed , thanks for your help :)

neiltking commented 5 years ago

@plemsoft Sorry for coming back to this but I've just tried to submit an IPA to the App Store, built using a new "App Store" publishing profile and they appear to be broken. I use the "Application Loader" app to push the IPA file up to App Store Connect, which has always worked with App Game Kit Classic builds but this new Studio build is getting the attached errors concerning "Unsupported Architectures", "Invalid Segment Alignment" and an invalid binary. Rather than create a new ticket I figured it may still be related to this but I can add a new ticket if needed. ApplicationLoaderErrors

plemsoft commented 5 years ago

@neiltking Got a new framework from paul , give it a try :)

AgkStudio2019-11-13: https://drive.google.com/file/d/1TOIhR8uPTNakTWBZRQTzlLG9Xp3E9OZD/view?usp=sharing

I just tried to update a game , and it went all the way. Let me know if it works for you, thanks.

appstore-ok

neiltking commented 5 years ago

Brilliant! Many thanks @plemsoft (and Paul). Using this version, the IPA has now been submitted fine and I am waiting for Apple to review the app update. It has also knocked 18% off the file size, which is always a good thing :-)

crushroll commented 5 years ago

Is this version built of the main branch, i.e. what you would release? The reason I ask is that breakpoints are completely broken in this version.

On Thu., 14 Nov. 2019, 1:38 am neiltking, notifications@github.com wrote:

Brilliant! Many thanks @plemsoft https://github.com/plemsoft (and Paul). Using this version, the IPA has now been submitted fine and I am waiting for Apple to review the app update. It has also knocked 18% off the file size, which is always a good thing :-)

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/TheGameCreators/AGK-Studio/issues/433?email_source=notifications&email_token=ADSTR7RH5QNYPP5NHF5GNYTQTQGMPA5CNFSM4IA3WMXKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOED6LDEQ#issuecomment-553431442, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADSTR7QMWMHWNT7DB3TQU4DQTQGMPANCNFSM4IA3WMXA .

plemsoft commented 5 years ago

@crushroll If you mean placing breakpoints using mouse clicks , then it is fixed and will not be in the release. was that the problem ?

crushroll commented 5 years ago

Yes. It doesn't work in these debug downloads you've been giving us to test ipa export. Just making sure it wasn't a release candidate, because the breakpoint selection in the editor is broken.

On Thu., 14 Nov. 2019, 6:06 pm Preben Eriksen, notifications@github.com wrote:

@crushroll https://github.com/crushroll If you mean placing breakpoints using mouse clicks , then it is fixed and will not be in the release. was that the problem ?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/TheGameCreators/AGK-Studio/issues/433?email_source=notifications&email_token=ADSTR7WAPIUGR5JPSBOARKTQTT2F7A5CNFSM4IA3WMXKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEEA2GOA#issuecomment-553755448, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADSTR7TWDSZQD6JBVKR2RMTQTT2F7ANCNFSM4IA3WMXA .