Display image in iOS

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

lohill
Posts: 770
Joined: Tue Dec 08, 2009 6:37 pm

Display image in iOS

Post by lohill » Tue Dec 23, 2014 1:58 am

Should I be able to display an image on an iOS screen? When I use the iOS Simulator to show what my stack would look line on an iOS device, the images (one is an image object and the other is a button with a graphic) do not show up. Is there some trick to making them visible?

Thanks,
Larry

Klaus
Posts: 14182
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Display image in iOS

Post by Klaus » Tue Dec 23, 2014 1:20 pm

Hi Larry,

yes, you should be able to display an image on iOS, everyone should! :D
Of course your images should appear, so we need more info!

Are this internal (imported) or referenced images?
If referenced, HOW are they referenced?
ABSOLUTE pathnames will of course not work here 8)
And how did you add the images to your standalone?


Best

Klaus

lohill
Posts: 770
Joined: Tue Dec 08, 2009 6:37 pm

Re: Display image in iOS

Post by lohill » Sat Dec 27, 2014 11:10 pm

Thanks Klaus,

I can now see the images. I added the images to the files section of the standalone. Is that the correct way to avoid absolute path names?
The two original images are in a sub stack like in the tutorial called 'Skinning and Animation: The Basics'. Then I have two buttons on the main stack whose icons are set to match the IDs of the images.

When I look at it in the iOS simulator, the 'buttons' show up as objects that move as instructed. I can successfully compile the Android application but don't have an Android device for testing. If I can borrow one, what is the process for getting the .apk on the device.

I have an iPhone but have not yet been able to get the application to compile for lack of a 'provisioning file'. I have gotten a Developer certificate and am exploring discussions of how the provisioning file is made. Do you have any particularly good references?

I hope your Christmas was nice. I'll bet where you are is colder than San Diego.

Larry

lohill
Posts: 770
Joined: Tue Dec 08, 2009 6:37 pm

Re: Display image in iOS

Post by lohill » Sun Dec 28, 2014 12:13 am

Klaus,

I was able to create a provisioning profile and successfully create my iOS bundle which is on my desktop. I then connected my iPhone to my Mac and started Xcode. Then following these instructions:
1) Open Xcode
2) In the 'Window' menu select 3) "Organizer"
4) Drag your App bundle to your connected device
My bundle would not drag to 'Organizer' so I went to the devices option for my phone and drug it there. It went but got rejected with the following message:
This executable was signed with invalid entitlements.
The entitlements specified in your application's Code Signing Entitlements file do not match those specified in your provisioning profile.
Where do I make changes? In the stand alone settings? In the provisioning profile? or in the Code Signing Entitlements file (whatever that is )?

Thanks,
Larry

Klaus
Posts: 14182
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Display image in iOS

Post by Klaus » Sun Dec 28, 2014 1:47 pm

Hi Larry,

sorry, no idea about missing profiles etc., still trying to avoid mobile development :D

But you can connect your Android device to your Mac via USB and it should appear in
menu "Development -> Test Target" so the app will be installed directly on the device,
when selecting "Test"!


Best

Klaus

FireWorx
Posts: 362
Joined: Wed Sep 07, 2011 9:39 pm

Re: Display image in iOS

Post by FireWorx » Sun Jan 04, 2015 1:47 am

Larry take a look at the IOS version you'r running on the iPhone. It's shown in the x-code organizer window as well as in your phones control panel If it says 8.1 and your settings in the standalone builder were for 7.1 then you will get such a message. If you built for iPad only and are trying to load onto an iPhone then same message. If the iPhone screensaver has come on and locked the iPhone it also may not recognize the device. If the device is not checked on the certificate you generated on the apple developer web site as one of your 100 test devices you may get the same message. You may need to go back to the apple developer web site provisioning profiles and check the box next to that iDevice and re-download it.
Hope this helps
Dave

lohill
Posts: 770
Joined: Tue Dec 08, 2009 6:37 pm

Re: Display image in iOS

Post by lohill » Tue Jan 06, 2015 6:12 pm

FireWorx,

My iPhone is 8.1.2 and in the standalone settings I have 8.0 or later checked. The iOS is set for iPod and iPhone. I am using LiveCode 6.7 (have tried bot 6.7 and 6.7.1 rc4). I use the Device window to put the executable on the iPhone which is not locked while trying. I have tried to put it on the iPhone both using the Plus button and by dragging. Each time I get the message about invalid entitlements and I have done this with three different versions of the provisioning file. You did say something I am not sure how to check though.
If the device is not checked on the certificate you generated on the apple developer web site as one of your 100 test devices you may get the same message. You may need to go back to the apple developer web site provisioning profiles and check the box next to that iDevice and re-download it.
How do I check the certificate to see in the device checked is correct?

Larry

lohill
Posts: 770
Joined: Tue Dec 08, 2009 6:37 pm

Re: Display image in iOS

Post by lohill » Wed Jan 07, 2015 7:38 pm

When creating an iOS standalone there is a drop down on the iOS tab called Profile which is where the Provisioning Profile is chosen. What determines what profiles show up in that dropdown? I now see 5 profiles there but four of those have been deleted from the Developer Portal. Why do the deleted ones still show up? If they are in my keychain, how do I identify them?

This is really a PITA and all the LiveCode people keep sending mw emails on the Pot of Gold I will be making with iOS development.

Larry

Klaus
Posts: 14182
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Display image in iOS

Post by Klaus » Wed Jan 07, 2015 8:00 pm

Hi Larry,
lohill wrote:When creating an iOS standalone there is a drop down on the iOS tab called Profile which is where the Provisioning Profile is chosen. What determines what profiles show up in that dropdown? I now see 5 profiles there but four of those have been deleted from the Developer Portal. Why do the deleted ones still show up? If they are in my keychain, how do I identify them?
this is one of the reasons why I still hesitate to start mobile development!
OK, another reason may be the fact, that I do not even own a cellphone or something, just an old iPod Touch 8)
lohill wrote:This is really a PITA and all the LiveCode people keep sending mw emails on the Pot of Gold I will be making with iOS development.
Sad, but true :(


Best

Klaus

Klaus
Posts: 14182
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Display image in iOS

Post by Klaus » Wed Jan 07, 2015 8:06 pm

Or let me put it this way:
The higly efficient marketing department of RR is definitively separated from the development team! :D

lohill
Posts: 770
Joined: Tue Dec 08, 2009 6:37 pm

Re: Display image in iOS

Post by lohill » Wed Jan 07, 2015 8:13 pm

Thanks Klaus,

Your humor is appreciated! I may need to fly Neil to San Diego to get this solved.

Larry

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7390
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: Display image in iOS

Post by jacque » Wed Jan 07, 2015 8:46 pm

I now see 5 profiles there but four of those have been deleted from the Developer Portal. Why do the deleted ones still show up? If they are in my keychain, how do I identify them?
LiveCode is reading the profiles stored in your keychain and can't know if they exist in the dev portal. You need to update your keychain. Open Keychain Access and look in the Keys pane. You may be able to identify the deleted profiles by date. If any profiles are expired, they will be labelled that way. Delete those.

When I create new profiles I try to name them differently in the "Common name" field of the certificate request form. That makes it easier to tell them apart.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

lohill
Posts: 770
Joined: Tue Dec 08, 2009 6:37 pm

Re: Display image in iOS

Post by lohill » Wed Jan 07, 2015 9:57 pm

LiveCode is reading the profiles stored in your keychain and can't know if they exist in the dev portal. You need to update your keychain. Open Keychain Access and look in the Keys pane. You may be able to identify the deleted profiles by date. If any profiles are expired, they will be labelled that way. Delete those.
My Keys pane does not show any dates in the Date Modified column (nor in the Expires column). A quick look at Keychain Preferences didn't seem to suggest anything that might help.

Larry.

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7390
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: Display image in iOS

Post by jacque » Wed Jan 07, 2015 10:20 pm

Right, but you should have some keys with little flipper arrows at the left of their names. If you expand those, the dates show. If you don't see any keys like that then they haven't been imported to Keychain yet.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

lohill
Posts: 770
Joined: Tue Dec 08, 2009 6:37 pm

Re: Display image in iOS

Post by lohill » Thu Jan 08, 2015 12:45 am

Thanks Jacque,

I did expand the things in Keychain Access and found the dates and they were all in line with the ones created today. I then went back to LiveCode standalone settings and I still had profiles that I threw away a few days ago. Then I went to the Accounts section of Xcode Preferences and saw the new ones along with the ones I thought were gone. I pressed the regenerate button (lower left hand corner) and now have only the new ones. I'm pretty sure when I go back to LC I'll see just the new. But while I'm here this is what I see in the Accounts preference:

Signing Identities Platform Status
iOS Development iOS Valid
iOS Distribution iOS Valid

Provisioning Profiles Expiration Entitlements
iOSTeam Provisioning Profile: hill.house 1/7/16 2 icons - keychain,inAppPurchase,gamecenter
Flash Cards 2 1/7/16 3 icons - keychain,cloud,inAppPurchase,gamecenter
Flash Cards 1/7/16 2 icons - keychain,inAppPurchase,gamecenter
iOSTeam Provisioning Profile: hill.house.* 1/7/16 3 icons - keychain,,cloud,inAppPurchase,gamecenter

I don't think I purposely chose inAppPurchase and Game Center I just got them by default. I chose the cloud from something in a Google search I read. There seems to be volumes of information on this problem on the web including patches that Neil has offered and a You Tube video. Unfortunately the print on the video is too small to read and and my ear does not translate Scottish very well.

Can you suggest a combination of the above that will help me get my app on my iPhone.

Thanks and regards,
Larry

Post Reply