Jump to content


Photo

Troubleshooting and fixing iOS issues


  • Please log in to reply
55 replies to this topic

#1 Jobo

Jobo

    No neurons left today

  • GMC Member
  • 2405 posts
  • Version:GM:Studio

Posted 03 August 2012 - 08:05 PM

When attempting to compile your *.IPA file, there are numerous things that can go wrong.
Murphy's law: anything that can go wrong, will go wrong.
...And boy did it apply to me.
Having spent countless hours dealing with these issues myself, here's all I've come to know - to make sure you don't go through the same nightmare.


To let GameMaker: Studio connect

If you're using a virtual machine (VMWare or VirtualBox for example), make sure you use a bridged network (default is NAT).

Getting IP Address
  • On your Mac, open "System Preferences".
  • Click on "Network".
  • The IP listed as "IPv4 address" is the address you want to write as "Mac Host Name" in GM: Studio.
Enabling Remote Login
  • On your Mac, open "System Preferences".
  • Click on "Sharing".
  • Enable all the list items in the window.
If you have entered Mac user name and password in GM: Studio as well, it should now say "Connection OK!".

How do I get the YoYo Runner app on my iDevice?
  • Go into your %appdata%\roaming\GameMaker-Studio\iOS\ folder and copy the file "Application-Oven-1.0.dmg" to your Mac (if using a virtual machine, you can transfer it via Dropbox or upload sites).
  • Install the app by dragging it into the Application directory on your Mac.
  • Run the Application Oven, which you just installed.
  • Bake the IPA with correct information.
  • Transfer the newly baked IPA onto your iDevice.
You now have the YoYo Runner on your iDevice.


Things to do when you're having iOS compile issues - based on your OS X

Snow Leopard (10.6)
  • Upgrade to Mac OS X Lion 10.7.3+ (at time of writing this guide, preferably Mountain Lion 10.8)
Or alternatively follow @Alex@'s approach written here, which is considerably more difficult.

Lion (10.7)
  • If your OS X is versioned lower than 10.7.3, update it to 10.7.3+.
  • Install the latest Xcode that fits your OS X (if you can't download Xcode from Mac App Store, go to http://developer.apple.com/downloads and find it there)
  • Read the list titled "Xcode Command Line Tools" below.
  • Read the list titled "Apple Required Certificates" below if you haven't already created and installed your certificates.
  • Still not working? sigh! Carry on...
  • Open Keychain Access (Finder -> Go -> Utilities).
  • Click on the list item "Certificates".
  • Locate your Developer (or Distribution) certificate and click on the arrow to expand.
  • Right-click the list item that appeared by expanding.
  • Click on "Get Info".
  • Click on the tab "Access Control".
  • Make sure it doesn't have to ask for permission to be used.

Mountain Lion (10.8)
  • Install the latest Xcode through Mac App Store.
  • Read the list titled "Xcode Command Line Tools" below.
  • Read the list titled "Apple Required Certificates" below if you haven't already created and installed your certificates.
  • Still not working? sigh! Carry on...
  • Open Keychain Access (Finder -> Go -> Utilities).
  • Click on the list item "Certificates".
  • Locate your Developer (or Distribution) certificate and click on the arrow to expand.
  • Right-click the list item that appeared by expanding.
  • Click on "Get Info".
  • Click on the tab "Access Control".
  • Make sure it doesn't have to ask for permission to be used.

Xcode Command Line Tools
  • Launch Xcode.
  • Next to the Apple logo in the top left of your screen, click on "Xcode".
  • Click "Preferences".
  • If you see a tab called "Downloads", click it. If not, jump to step 6.
  • You should see a list with ~4 items in it. One of them being "Xcode Command Line Tools". Install it. Ignore the steps below, they're not for you.
  • So you didn't see the "Downloads" tab then? Don't worry, it's because your Xcode version doesn't have that. Easy fix!
  • Go to http://developer.apple.com/downloads and search for "Xcode Command Line Tools" (this requires Mac OS X Lion 10.7.3+).
  • Download and install.

Apple Required Certificates
  • Open Keychain Access on your Mac (Finder -> Go -> Utilities -> Keychain Access).
  • Next to the Apple logo in the top left corner of your screen, click on "Keychain Access".
  • Click on "Certificate Assistant".
  • Click on "Request a Certificate from a Certificate Authority".
  • In the newly opened window, enter your e-mail and common name. Ignore CA e-mail if you can.
  • Finish.
  • You have now created your signing certificate - upload this to the iOS Developer Center on www.apple.com and get your certificates (more info)
  • To install your certificates, download them from Apple and double-click them.

You should now be able to compile *.IPA files with GameMaker: Studio iOS Module!

Edited by Jobo, 04 January 2013 - 01:02 AM.

  • 4

#2 Nocturne

Nocturne

    Nocturne Games

  • Administrators
  • 16814 posts
  • Version:GM:Studio

Posted 04 August 2012 - 05:52 PM

This post contains some excellent information and as such I have pinned it for all the iOS users out there who may find it useful when in doubt!
  • 1

#3 jarrodnb

jarrodnb

    GMC Member

  • GMC Member
  • 12 posts

Posted 09 August 2012 - 02:05 AM

I can connect GM:S to my VMWare Mac perfectly fine (YoYo Runner and Bake IPA won't work though) when set to NAT.
But when I change the network adapter setting in VMWare to 'Bridged', I lose all connection to my virtual mac.

Am I missing a step here?
  • 0

#4 Jobo

Jobo

    No neurons left today

  • GMC Member
  • 2405 posts
  • Version:GM:Studio

Posted 09 August 2012 - 10:47 AM

When changing from NAT to Bridged, your virtual machine will be given a new IP address.

Please complete these steps again and try again:
Getting IP Address
  • On your Mac, open "System Preferences".
  • Click on "Network".
  • The IP listed as "IPv4 address" is the address you want to write as "Mac Host Name" in GM: Studio.

  • 0

#5 True Valhalla

True Valhalla

    ಠ_ಠ

  • Retired Staff
  • 4880 posts
  • Version:GM:Studio

Posted 10 August 2012 - 08:36 AM

Would like to see Apple Required Certificates step 7 expanded...
  • 0

#6 Jobo

Jobo

    No neurons left today

  • GMC Member
  • 2405 posts
  • Version:GM:Studio

Posted 10 August 2012 - 10:24 AM

7. You have now created your signing certificate - upload this to the iOS Developer Center on www.apple.com and get your certificates.


Go to http://developer.apple.com, click "Member Center" next to the search field in the menu, log in with your developer profile, click on "iOS Provisioning Portal" and there's everything you need to set it all up correctly.
  • 0

#7 True Valhalla

True Valhalla

    ಠ_ಠ

  • Retired Staff
  • 4880 posts
  • Version:GM:Studio

Posted 10 August 2012 - 10:44 AM

Oh is that what it meant. Yeah, OK, well I'm stuck.

Ironic that it was easier to do this on MacInCloud than an actual Mac. Time for a clean slate and retry...
  • 0

#8 @Alex@

@Alex@

    Retired GMC Reviewer

  • Reviewer
  • 3072 posts
  • Version:Unknown

Posted 06 September 2012 - 06:12 PM

I've been using Snow Leopard to do this so once I've fixed a rather annoying issue with blurriness I'll write up a version for Snow Leopard so it goes beyond upgrade.
  • 1

#9 Maxinston

Maxinston

    Epic Phail

  • GMC Member
  • 1230 posts
  • Version:Unknown

Posted 07 September 2012 - 12:02 PM

error: Codesign check fails : /var/folders/ld/3c796_4d06qcmby44g4fyx4w0000gn/T/IcBBjIiuS0/Payload/StreetRacingXtreme.app: invalid signature (code or signature have been modified)
In architecture: armv6


unable to identify GameMaker-Studio/StreetRacingXtreme/StreetRacingXtreme.ipa: no such file or directory


Did all of the above, the certificates are valid and the connection to the mac is working. Using Lion.

EDIT: Fixed the previous one now this is what I'm getting

Edited by pepolshet, 07 September 2012 - 12:24 PM.

  • 0

#10 Jobo

Jobo

    No neurons left today

  • GMC Member
  • 2405 posts
  • Version:GM:Studio

Posted 07 September 2012 - 01:55 PM

As you can see, your problem occurs during the signing process.
Make sure you can download the latest Xcode update from the Mac App Store. You may need to update your OS to Mountain Lion to be able to do so.
It should fix your problem.
  • 0

#11 mms

mms

    GMC Member

  • GMC Member
  • 27 posts
  • Version:GM:Studio

Posted 11 September 2012 - 12:38 PM

hi,

i try to create an app for ios too. Error on gms:
error: Codesign check fails : /var/folders/jd/rxzgrdqd12g80vkypd1f_l_m0000gn/T/s_3A8ObitZ/Payload/appname.app: CSSMERR_TP_NOT_TRUSTED
In architecture: armv6

error on upload tool (under xcode 4.4 ) at mac os 10.7.4 : application failed codesign verification

and

the bundle id is invalid (gms - global game settings: com.name.appname)

i think the ios modul from gms is not working very well.....i am very disappointed...

cheers
ingo
  • 0

#12 @Alex@

@Alex@

    Retired GMC Reviewer

  • Reviewer
  • 3072 posts
  • Version:Unknown

Posted 11 September 2012 - 12:53 PM

Turns out Xcode for Snow Leopard does not have the SDK for iOS 5.1 which means you have to steal the SDK from Xcode for Mountain Lion by copying and pasting it from the disk image into the same folder with the other SDKs. This was a major block when I was testing last night since downloading Xcode took several hours but once we had it the process was pretty easy. Now while I'd still advise anyone to just get Mountain Lion to save this hassle , it is a viable option to get just the SDK.
  • 0

#13 mms

mms

    GMC Member

  • GMC Member
  • 27 posts
  • Version:GM:Studio

Posted 11 September 2012 - 01:21 PM

Turns out Xcode for Snow Leopard does not have the SDK for iOS 5.1 which means you have to steal the SDK from Xcode for Mountain Lion by copying and pasting it from the disk image into the same folder with the other SDKs. This was a major block when I was testing last night since downloading Xcode took several hours but once we had it the process was pretty easy. Now while I'd still advise anyone to just get Mountain Lion to save this hassle , it is a viable option to get just the SDK.


i am using xcode 4.4.1 i thought there is sdk ios 5.1 still inside...is there still anything i need to copy ?!
  • 0

#14 @Alex@

@Alex@

    Retired GMC Reviewer

  • Reviewer
  • 3072 posts
  • Version:Unknown

Posted 11 September 2012 - 01:29 PM

If you have the 5.1 SDK inside there shouldn't be anything you need to copy. I however did not have, I can't recall the Xcode version but it was fairly recent.. This problem as far as I can figure out is only existent on Xcode for Snow Leopard, so if you are using Lion you shouldn't need to do much,
  • 0

#15 Jobo

Jobo

    No neurons left today

  • GMC Member
  • 2405 posts
  • Version:GM:Studio

Posted 11 September 2012 - 05:05 PM

the bundle id is invalid (gms - global game settings: com.name.appname)

The bundle id is not the same as you've declared in the license you're trying to sign the app with.
  • 0

#16 mms

mms

    GMC Member

  • GMC Member
  • 27 posts
  • Version:GM:Studio

Posted 11 September 2012 - 05:19 PM

the bundle id is invalid (gms - global game settings: com.name.appname)

The bundle id is not the same as you've declared in the license you're trying to sign the app with.


i put my bundle id in gms g.g.s. like above...but in the license, apple put an id in front of my bundle id, like this: 1234567890.com.name.appname
which one is right to put in gms game settings ? com.name.appname or 1234567890.com.name.appname (for app id)
this always confuse me
  • 0

#17 Jobo

Jobo

    No neurons left today

  • GMC Member
  • 2405 posts
  • Version:GM:Studio

Posted 11 September 2012 - 05:28 PM

The bundle id is all you need to write, GM:Studio automatically adds the prefix (app id).
  • 0

#18 _257279

_257279

    GMC Member

  • GMC Member
  • 27 posts
  • Version:GM:Studio

Posted 12 September 2012 - 05:43 AM

ok can some one help me out here:

I'm trying to export my iso to my mac, I've follow the instructions, but still seem to have a problem:

I keep getting this message error when trying to export the iso file:


Saving IFF file... C:\Users\TrevTech\AppData\Local\Temp\gm_ttt_20555\gm_ttt_22511\ZombieRunner.zip
Writing Chunk... GEN8
Writing Chunk... OPTN
Writing Chunk... EXTN
Writing Chunk... SOND
Writing Chunk... SPRT
Writing Chunk... BGND
Writing Chunk... PATH
Writing Chunk... SCPT
Writing Chunk... FONT
Writing Chunk... TMLN
Writing Chunk... OBJT
Writing Chunk... ROOM
Writing Chunk... DAFL
Writing Chunk... TPAGE
Writing Chunk... CODE
Writing Chunk... VARI
Writing Chunk... FUNC
Writing Chunk... STRG
Writing Chunk... TXTR
0 Compressing texture... writing texture texture_0.png...
1 Compressing texture... writing texture texture_1.png...
2 Compressing texture... writing texture texture_2.png...
3 Compressing texture... writing texture texture_3.png...
4 Compressing texture... writing texture texture_4.png...
5 Compressing texture... writing texture texture_5.png...
6 Compressing texture... writing texture texture_6.png...
7 Compressing texture... writing texture texture_7.png...
Writing Chunk... AUDO
Writing Chunk... SCPT
Writing Chunk... DBGI
Writing Chunk... STRG
Hello World
Done
2012-09-11 22:40:46.891 Application Oven[1995:100b] The folder GÇ£Provisioning ProfilesGÇ¥ doesnGÇÖt exist.
2012-09-11 22:40:46.893 Application Oven[1995:100b] Temporary directory is /var/folders/xw/llzn5vg53jx_51d5khn4p77c0000gn/T/App-Oven.K3qbKM
2012-09-11 22:40:46.894 Application Oven[1995:100b] /usr/bin/unzip -qq /Applications/GameMaker-Studio/ZombieRunner.zip -d /var/folders/xw/llzn5vg53jx_51d5khn4p77c0000gn/T/App-Oven.K3qbKM/GMSzip
2012-09-11 22:40:47.033 Application Oven[1995:100b] /usr/bin/unzip -qq /Applications/GameMaker-Studio/Application Oven.app/Contents/Resources/com.yoyogames.yoyorunner.ipa -d /var/folders/xw/llzn5vg53jx_51d5khn4p77c0000gn/T/App-Oven.K3qbKM/runner
2012-09-11 22:40:47.185 Application Oven[1995:100b] Not distribution
2012-09-11 22:40:47.579 Application Oven[1995:100b] /usr/bin/defaults write /var/folders/xw/llzn5vg53jx_51d5khn4p77c0000gn/T/App-Oven.K3qbKM/runner/Payload/ZombieRunner Free.app/Info CFBundleIdentifier apps4nerds@gmail.com
2012-09-11 22:40:47.597 Application Oven[1995:100b] /usr/bin/defaults write /var/folders/xw/llzn5vg53jx_51d5khn4p77c0000gn/T/App-Oven.K3qbKM/runner/Payload/ZombieRunner Free.app/Info CFBundleShortVersionString 0.0.22
2012-09-11 22:40:47.613 Application Oven[1995:100b] /usr/bin/defaults write /var/folders/xw/llzn5vg53jx_51d5khn4p77c0000gn/T/App-Oven.K3qbKM/runner/Payload/ZombieRunner Free.app/Info CFBundleVersion 0.0.22
2012-09-11 22:40:47.629 Application Oven[1995:100b] /usr/bin/defaults write /var/folders/xw/llzn5vg53jx_51d5khn4p77c0000gn/T/App-Oven.K3qbKM/runner/Payload/ZombieRunner Free.app/Info CFBundleDisplayName ZombieRunner Free
2012-09-11 22:40:47.645 Application Oven[1995:100b] /usr/bin/defaults write /var/folders/xw/llzn5vg53jx_51d5khn4p77c0000gn/T/App-Oven.K3qbKM/runner/Payload/ZombieRunner Free.app/Info CFBundleExecutable ZombieRunner Free
2012-09-11 22:40:47.667 Application Oven[1995:100b] /usr/bin/security unlock-keychain -p password
2012-09-11 22:40:47.687 Application Oven[1995:100b] /usr/bin/codesign -f --preserve-metadata -s iPhone Developer --resource-rules=/var/folders/xw/llzn5vg53jx_51d5khn4p77c0000gn/T/App-Oven.K3qbKM/runner/Payload/ZombieRunner Free.app/ResourceRules.plist /var/folders/xw/llzn5vg53jx_51d5khn4p77c0000gn/T/App-Oven.K3qbKM/runner/Payload/ZombieRunner Free.app
iPhone Developer: no identity found
2012-09-11 22:40:47.748 Application Oven[1995:100b] /usr/bin/xcode-select -print-path
2012-09-11 22:40:47.752 Application Oven[1995:100b] /Applications/Xcode.app/Contents/Developer
2012-09-11 22:40:47.753 Application Oven[1995:100b] /bin/sh -c /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/PackageApplication "/var/folders/xw/llzn5vg53jx_51d5khn4p77c0000gn/T/App-Oven.K3qbKM/runner/Payload/ZombieRunner Free.app" -o "/Users/admin/GameMaker-Studio/ZombieRunnerFree/ZombieRunner Free.ipa"
error: Codesign check fails : /var/folders/xw/llzn5vg53jx_51d5khn4p77c0000gn/T/N1c2LQjoQg/Payload/ZombieRunner Free.app: invalid signature (code or signature have been modified)
In architecture: armv6


unable to identify GameMaker-Studio/ZombieRunnerFree/ZombieRunner Free.ipa: no such file or directory


I've even tried making the dir mannuly, but that still don't seem to help? any suggestions?
  • 0

#19 Jobo

Jobo

    No neurons left today

  • GMC Member
  • 2405 posts
  • Version:GM:Studio

Posted 12 September 2012 - 02:32 PM

You can see what's wrong in this line:

2012-09-11 22:40:46.891 Application Oven[1995:100b] The folder GÇ£Provisioning ProfilesGÇ¥ doesnGÇÖt exist.

Which says that you haven't got a provisioning profile. Go to Global Game Settings -> iOS -> Press the button "Refresh from Mac" (or similar) to get the provisioning profiles and certificates available on it.
  • 0

#20 _257279

_257279

    GMC Member

  • GMC Member
  • 27 posts
  • Version:GM:Studio

Posted 13 September 2012 - 12:58 AM

ok, I'm realy getting frusterated here, I'm not a mac guy, but I learn fast, but I've followed all the instructions.

and I keep getting this error:


/var/folders/xw/llzn5vg53jx_51d5khn4p77c0000gn/T/App-Oven.sKw8jK/runner/Payload/ZombieRunner Free.app: User interaction is not allowed.
2012-09-12 17:55:08.077 Application Oven[827:100b] /usr/bin/xcode-select -print-path
2012-09-12 17:55:08.112 Application Oven[827:100b] /Applications/Xcode.app/Contents/Developer
2012-09-12 17:55:08.113 Application Oven[827:100b] /bin/sh -c /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/PackageApplication "/var/folders/xw/llzn5vg53jx_51d5khn4p77c0000gn/T/App-Oven.sKw8jK/runner/Payload/ZombieRunner Free.app" -o "/Users/admin/GameMaker-Studio/ZombieRunnerFree/ZombieRunner Free.ipa"

mainly this is what I'm trying to figure out, how do I fix this?


error: Codesign check fails : /var/folders/xw/llzn5vg53jx_51d5khn4p77c0000gn/T/xRbG5xWniJ/Payload/ZombieRunner Free.app: invalid signature (code or signature have been modified)

In architecture: armv6


unable to identify GameMaker-Studio/ZombieRunnerFree/ZombieRunner Free.ipa: no such file or directory


I've tried renewing my Certification, and re-provisioned and still am not having any luck.

Edited by _257279, 13 September 2012 - 12:59 AM.

  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users