GLBasic forum

Main forum => FAQ => Topic started by: Ian Price on 2010-Sep-04

Title: Compiling iPhod error
Post by: Ian Price on 2010-Sep-04
Having had numerous errors (including BASE SDK Missing) and sorting them, I now have an error trying to compile some simple GLBasic code.

It sounds like my developer licence or name is not being accepted - I'm not exactly sure what I need to do or how to deal with this. Can anyone help?

I've attached screenies - hopefully someone will be able to spot what's up and how to fix.

[attachment deleted by admin]
Title: Re: Compiling iPhod error
Post by: MrTAToad on 2010-Sep-04
Have you added the public/private key to the Keychain ?
Title: Re: Compiling iPhod error
Post by: Ian Price on 2010-Sep-04
I followed advice from here - http://mobiforge.com/developing/story/deploying-iphone-apps-real-devices

but other than that, I really have no idea what I'm (supposed to be) doing!
Title: Re: Compiling iPhod error
Post by: MrTAToad on 2010-Sep-04
The error means you need to create your provisioning profile (.mobileprovision file) and/or certificate (.cer file). Sounds like one or both hasn't been generated and added to the Keychain or the iPhone...

Have a look in the Keychain to make sure that is present (and that it can be read from).  Also make sure the iPhone device ID has been used to generate the provisioning information...

This may help : http://www.youtube.com/watch?v=eGdTdmCI34w
Title: Re: Compiling iPhod error
Post by: Ian Price on 2010-Sep-04
I created a "developer_identity.cer" and it seemed to be accepted in the keychain - not that I know anything about this, other than what I followed in the link above.

I don't even know what a provisioning profile (.mobileprovision file) is. :S

And advice/hints?
Title: Re: Compiling iPhod error
Post by: MrTAToad on 2010-Sep-04
The provisioning file is generated by the Create A Provision Profile in the Developer Connection - once generated you double-click on it, and add it to the Keychain.  You also need to drag it to XCode to add it to the iPhone
Title: Re: Compiling iPhod error
Post by: Ian Price on 2010-Sep-04
Ah, I did drag the provisioning file to XCode - I can see it on my Mac now - "Ian_Price.mobileprovision" - I didn't even know what it was, but that was from the linked article.


Looking at the keychain certification etc. it states the iPhone developer as (N K ;)) and includes public and private keys for NK and I P.

Is it because the licence was issued for someone else. Having gone through the original profile I was able to change everything except the lecence holder's name (in profile it's now my name, but as the licence was part of a team, it still holds the original owner's name).

Will I have to register for a new licence under my name after all?
Title: Re: Compiling iPhod error
Post by: MrTAToad on 2010-Sep-04
I dont know - its something that no-one has discussed :)

Its quite possible that the Provision Keys are linked to specific Mac's and thus accounts aren't transferable.

Trouble is, you need someone who is currently developing iPhone stuff :)
Title: Re: Compiling iPhod error
Post by: Ian Price on 2010-Sep-04
That's what I expected tbh. :(

So, is it possible to delete the keys and cert information from the keychain? I don't want to try to delete something that I might later need or screw up my Mac or iPod.

[EDIT] Oh well, I've now deleted all keys and certs. I'll register as a dev myself and hope this resolves the situation.

Thanks for all your help MrTaToad. It was worth a try :)
Title: Re: Compiling iPhod error
Post by: MrTAToad on 2010-Sep-04
Yes - its quite possible to delete them in XCode - Look for Apple development in Certificates
Title: Re: Compiling iPhod error
Post by: MrTAToad on 2010-Sep-04
Its a shame, but there we go :)
Title: Re: Compiling iPhod error
Post by: Ian Price on 2010-Sep-04
It's one of those things I guess. Apple didn't get to where they are today by allowing their stuff to be given away freely :(

Anyway I've signed up for an account. Now all I need is some time to set it all up and get testing.

Thanks again though. I'm sure this adventure is not over just yet though... ;)
Title: Re: Compiling iPhod error
Post by: MrTAToad on 2010-Sep-04
Theoretically, you shouldn't have any trouble now :)

If Gernot hadn't have gone on holiday, he might have been able to have a look via TeamView... =D
Title: Re: Compiling iPhod error
Post by: Ian Price on 2010-Sep-04
Oh well, not to worry. Yet! :P
Title: Re: Compiling iPhod error
Post by: MrTAToad on 2010-Sep-04
Not much can go wrong once its all been setup :)
Title: Re: Compiling iPhod error
Post by: shawnus on 2010-Sep-06
Hi Ian,

I probably will not be much help but I have recently gone through the same process (ie switching from PC to Mac, joining the dev programme, keychain, profiles, etc, etc) & I personally found it really frustrating. My approach was just to follow the apple videos & instructions step by step- there are some useful videos on youtube as well.

I found the build for distribution & submitting the binary to itunes most difficult.

Cheers, Shawn
Title: Re: Compiling iPhod error
Post by: Ian Price on 2010-Sep-06
I'll certainly give them a try now that I have my own proper account now.

Cheers. :)
Title: Re: Compiling iPhod error
Post by: Ian Price on 2010-Sep-08
Having followed numerous "help" links about how to get it all working (including Apple's own), I finally purchased a guide  that lead me through the whole process, step by step - including doing things I'd seen nowehere else. And it worked! I now have a fully operational app. on my iPod, created by me in GLBasic.

I would heartily recommend it to anyone struggling with Apple's POS development/distribution/provisioning software.

http://stuartmorrison.com/blog/iclue-app-code-signing-simplified/

It's £7.00, but it's worth it - I'd spent hours trying to get this damn thing to work before getting the guide. I went through the guide and it worked first time.

Thankyou to everyone, especially MrTaToad, for your assistance. Cheers chaps :)
Title: Re: Compiling iPhod error
Post by: MrTAToad on 2010-Sep-08
Shows how tricky the whole process is if you need to buy a book in order to work out how to transfer and run a program on the machine...
Title: Re: Compiling iPhod error
Post by: Ian Price on 2010-Sep-08
It really is idiotic. Surely it should be -

Buy license
Download Dev certificate
Create your app
Distribute - either privately or via Appstore

At least it's sorted now. I know some of my problems were due to inexperience, but it really shouldn't be like it is.
Title: Re: Compiling iPhod error
Post by: trucidare on 2010-Sep-09
Apple created a wizard for this problematic.
Title: Re: Compiling iPhod error
Post by: Ian Price on 2010-Sep-09
The wizard was anything but.... :(

The process shouldn't even need a wizard. It should just work, without the user being aware.
Title: Re: Compiling iPhod error
Post by: Wampus on 2010-Sep-09
I was truly stunned by how difficult it was to get my first app on my test device. Both the number of steps involved and the initial complexity is very offputting.

Still, when the iDevice launches the first app, doesn't it feel exciting?  :)
Title: Re: Compiling iPhod error
Post by: MrTAToad on 2010-Sep-09
From the looks of it, Android is easier :)
Title: Re: Compiling iPhod error
Post by: Ian Price on 2010-Sep-09
QuoteStill, when the iDevice launches the first app, doesn't it feel exciting?  :)

I totally agree. My first simple app running on my iPod Touch was far more exciting, having gone through all the other crap and failing. Wiz, GP2X etc. were far less fun. They just worked first time. I just wish I hadn't needed to get that excitement ;)

It really is wrong that a tinpot company like GPH do a better job of getting your code actually running first time.
Title: Re: Compiling iPhod error
Post by: shawnus on 2010-Sep-10
I found the code signing & distribution very difficult. I managed in the end but more by trying little tweaks to the process then by strictly following the apple process, which was slightly inaccurate.

I have to say I'm not particularly confident that I can build for distro again so I will probably purchase the above item if it describes a 'rock solid' and replicatable process.

Cheers, Shawn
Title: Re: Compiling iPhod error
Post by: Ian Price on 2010-Sep-10
Shawnus; PM me your email addy. :)