Installing on iOS 'does not have a valid signature'

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

campsoftware
Posts: 20
Joined: Tue Jun 14, 2011 2:35 pm

Installing on iOS 'does not have a valid signature'

Post by campsoftware » Tue Jun 21, 2011 10:54 pm

I'm really new to LiveCode. So far I have an app that functionally works in LiveCode. Next I plan to test in the iOS simulator and then on hardware.

I followed the instructions from a lesson on how to enable Testing with the Simulator:
http://lessons.runrev.com/spaces/lesson ... n-for-iOS-

That worked great and I can now run the app in the simulator.

Near the bottom of the lesson it states:
Once you have registered appropriately as an iPhone developer and setup your certificate and obtained a provisioning profile, you can deploy your application onto a real iPhone, iPad or iPod touch. To do this, simply choose your provisioning profile from the drop-down list in the standalone application setting screen, and then select "Save as Standalone Application..." from the file menu.
I tried this, but over and over, but I can't seem to make it work. Every time I drag the app, to starts copying and then I get a message that states "The application does not have a valid signature."

Is there a lesson on how to do this or does a ridiculously simple list of instructions exist?

Thanks, Hal

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: Installing on iOS 'does not have a valid signature'

Post by Mark » Wed Jun 22, 2011 2:41 am

Hal,

What makes you think that your provision certificate is correct? You don't give any information about this, which makes it very difficult to determine what the problem might be. All I can say is that you need to follow Apple's instructions very, very carefully. Today, I submitted an App to the app store and getting it all right, including updating to XCode 4 and re-compiling the app, took me all day.

Best regards,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

campsoftware
Posts: 20
Joined: Tue Jun 14, 2011 2:35 pm

Re: Installing on iOS 'does not have a valid signature'

Post by campsoftware » Wed Jun 22, 2011 12:31 pm

I never said I did it right, just that I tried everything I could think of. I was hoping someone could share a list of exactly what to do. The Lessons for the other tasks are very good, just that this is very fuzzy.

Could you make if a list of what steps you took? That would be very helpful!

Thanks, Hal

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: Installing on iOS 'does not have a valid signature'

Post by Mark » Wed Jun 22, 2011 12:52 pm

Halo,

I just followed Apple's instructions after upgrading to XCode 4. I don't think it makes sense to repeat Apple's documentation here. Just make sure that you have the right developers profile selected when you test and your distribution profile when you're compiling for the iTunes store. If you're testing on a real device, then you need to make sure that you have added the device to your developers account with Apple and that the provision profile downloaded from Apple includes this device. Do you realise this is an Apple thing and not a RunRev thing? The Rev lessons won't help you here. You need to read Apple's documentation.

Kind regards,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

campsoftware
Posts: 20
Joined: Tue Jun 14, 2011 2:35 pm

Re: Installing on iOS 'does not have a valid signature'

Post by campsoftware » Wed Jun 22, 2011 1:37 pm

I do realize that it's an Apple thing. Thing is, I'm still having problems. Other folks are too. Thankfully, you and other folks figured it out.

I'm just looking for a concise 'Lesson like' list of instructions on what needs to be done as what I've done isn't working. Just like changing a tire on a car, the first time you do it it's daunting and you might have problems. Once you have the understanding, it's easy...

If you'd rather not help, no worries, maybe someone else will. I'd like to know what the steps are to test on my phone and what needs to be changed to submit the app to be sold.

Thanks, Hal

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: Installing on iOS 'does not have a valid signature'

Post by Mark » Wed Jun 22, 2011 1:46 pm

Hal,

Go to the iOS provisioning portal. There you will see: "As a Program Admin, you can use the Development Provisioning Assistant to create and install a Provisioning Profile and iOS Development Certificate needed to build and install applications you're developing for iOS devices.". Use that assistent. It should do the trick.

Trouble is, this is all there is to it. If you're making an app in XCode, it is more complicated, but you're using LiveCode and all you need to do is use that assistent and choose the right profile in the standalone builder.

If this doesn't help you, maybe you need to ask more specific questions.

Kind regards,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

campsoftware
Posts: 20
Joined: Tue Jun 14, 2011 2:35 pm

Re: Installing on iOS 'does not have a valid signature'

Post by campsoftware » Wed Jun 22, 2011 2:16 pm

Thanks Mark! That's something I didn't try before. So, I deleted all my existing Provisions and ran the assistant. Everything went smoothly. I choose the new Provision in the standalone builder, created the app, and then dragged the app to the Xcode Organizer Apps for my phone. The files began copying and a message appeared: "The application does not have a valid signature."

Thank you for the suggestion about using the Assistant, but the result was the same...

Do you know how I can get past the invalid signature issue?

Thanks, Hal

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: Installing on iOS 'does not have a valid signature'

Post by Mark » Wed Jun 22, 2011 2:37 pm

Hal,

You drag the app where?

AFAIK you need to drag it into iTunes and sync your phone. Works for me.

Best,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

campsoftware
Posts: 20
Joined: Tue Jun 14, 2011 2:35 pm

Re: Installing on iOS 'does not have a valid signature'

Post by campsoftware » Wed Jun 22, 2011 3:06 pm

This lesson says to open Xcode, open Organizer, then drag the app to the device...
http://lessons.runrev.com/spaces/lesson ... n-for-iOS-

I tried dragging the app to iTunes as you suggested. It copied in to my apps, but when I performed the sync I got an error about the app signature not being correct...

Thanks for all the suggestions!

Hal

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: Installing on iOS 'does not have a valid signature'

Post by Mark » Wed Jun 22, 2011 3:17 pm

Hal,

Which version of XCode do you have?

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

campsoftware
Posts: 20
Joined: Tue Jun 14, 2011 2:35 pm

Re: Installing on iOS 'does not have a valid signature'

Post by campsoftware » Wed Jun 22, 2011 3:34 pm

Based on:
http://lessons.runrev.com/spaces/lesson ... Developer-

I have these installed and the folders are named as follows in the root of my boot drive:
Developer 3.2
Developer 3.2.6
Developer 4 ( I this installed before I started with LiveCode )

In LiveCode Prefs / Mobile Support I selected these locations: /Developer 3.2.6 and /Developer 3.2

When I build, I have selected iPod, iPhone, and iPad. I had the minimum iOS set to 3.1.3, but I have been using 4.3.

Does that help?

Hal

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: Installing on iOS 'does not have a valid signature'

Post by Mark » Wed Jun 22, 2011 4:41 pm

Hi Hal,

What is the exact name of the provision profile, which you select in the standalone application settings, and which exact bundle identifier do you use?

Edit: ignore that. I've just combined a very old developer provision profile with a non-existing bundle identifier and it still worked. Maybe it might still be a good idea to post the exact name of your provision profile. Also, open XCode4 and check that the provision profile and app ID are visible in the organiser. Then open Keychain Access and make sure that there are no certificates with identical names.

You really should use XCode 4. XCode 3 is obsolete when it comes to iPhone development. Select the root folder of XCode 4 in the LiveCode preferences.

If this still doesn't work, change the name of the folder Developer 4 into Developer and re-select this folder in the LiveCode preferences.

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

campsoftware
Posts: 20
Joined: Tue Jun 14, 2011 2:35 pm

Re: Installing on iOS 'does not have a valid signature'

Post by campsoftware » Wed Jun 22, 2011 11:41 pm

Thanks so much Mark! The combination of everything you suggested helped. You were dead on about it being simple and about having everything exactly correct.

It could of also worked as I downloaded and installed Xcode 4.0.2. I was using the older version of Xcode as the LiveCodeNotes 4.6.1 state explicitly that LiveCode supports Xcode 3.2.6, 3.2.5, 3.2.4, 3.2.1 on Mac OS 10.6:
http://www.runrev.com/downloads/livecod ... _1-iOS.pdf

I hope this will help others...

I deleted all my provision profiles and I:
  • - Went to the On the iOS Provisioning Portal to App IDs then created a new App ID with Description = "LiveCodeApp" ; Generate New ID ; BundleID = "com.campsoftware.livecodeapp"

    - Went to Provisioning on the Development tab and created a new profile with Profile Name = "LiveCodeAppDev" ; ticked the checkbox for my certificate ; choose the App ID = "LiveCodeApp" ; ticked all the devices that I needed.

    - Refreshed the page and downloaded the new profile and then opened the "LiveCodeAppDev" profile which added it to Xcode and LiveCode.

    - Went to the LiveCode Standalone App Settings for iOS and set: Display Name = "LiveCodeApp" ; Internal App ID = "com.campsoftware.livecodeapp" ; Profile = "LiveCodeAppDev".

    - In LiveCode I choose "Save as Standalone App" and put it in a folder.

    - Then I launched Xcode, opened the Organizer, then selected my phone, then dragged my app to the window. It copied my app with no errors!
Last edited by campsoftware on Thu Jun 23, 2011 3:13 am, edited 1 time in total.

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: Installing on iOS 'does not have a valid signature'

Post by Mark » Thu Jun 23, 2011 12:00 am

Cool that you got it to work, Hal.

Did you notice that your post got cut off?

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

campsoftware
Posts: 20
Joined: Tue Jun 14, 2011 2:35 pm

Re: Installing on iOS 'does not have a valid signature'

Post by campsoftware » Thu Jun 23, 2011 3:13 am

Thanks! I just fixed it.

Post Reply