could not locate device support files

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

trags3
Posts: 418
Joined: Wed Apr 09, 2014 1:58 am
Location: Las Vegas, NV

could not locate device support files

Post by trags3 » Sun Feb 17, 2019 2:40 am

I see that this topic was discussed in the past (more than a year ago) but nothing in those previous discussions seems to fix my problem.
I am running macOS High Sierra 10.13.6 LiveCode 9.0.2 Build 15152 and Xcode 10.0 (10A255)
Everything works until I try to install the App onto my iPhone 8 Plus running iOS 12.1.2

I get a message "Could not locate device support files. This iPhone 8 Plus is running iOS 12.1.2 which may not be supported by this version of Xcode."

LC 9.0.2 requires Xcode 10.0.
Am I missing something? I haven't done this for quite a while.

Thanks for the help.
Tom

LiveCode_Panos
Livecode Staff Member
Livecode Staff Member
Posts: 818
Joined: Fri Feb 06, 2015 4:03 pm

Re: could not locate device support files

Post by LiveCode_Panos » Tue Feb 19, 2019 10:10 am

Hello Tom,

If I remember correctly, I have seen this in the past, but it was just a warning. The app was installed correctly in the device. Is this still the case?

Kind regards,
Panos
--

trags3
Posts: 418
Joined: Wed Apr 09, 2014 1:58 am
Location: Las Vegas, NV

Re: could not locate device support files

Post by trags3 » Tue Feb 19, 2019 6:56 pm

Hi Panos,
No the App doesn't install.
There is an answer box that pops up prior to getting this error that states "A valid provisioning profile for this executable was not found."
The app built fine. I have gone through the process of trying to get a new provisioning profile. I am missing something in that process but now I'm going through the LiveCode Lessons Vol 2 Pages 844 thru ~ 850.

One thing I noticed last night was that the "Test" button is grayed out.
If you can point me to better documentation to follow it would be helpful.

I've done this successfully before. I have even had 3 Apps on the Apple App Store but it has been a while.

Thanks
Tom

LiveCode_Panos
Livecode Staff Member
Livecode Staff Member
Posts: 818
Joined: Fri Feb 06, 2015 4:03 pm

Re: could not locate device support files

Post by LiveCode_Panos » Mon Feb 25, 2019 3:51 pm

Hello Tom,

Could you post a screenshot of the iOS standalone settings?

Since the standalone is built successfully, but it fails to install with error "A valid provisioning profile for this executable was not found.", it means the app was signed with an incorrect provisioning profile (for example with an AppStore Distribution provisioning profile - this will not allow installing the app locally to your device)

Kind regards,
Panos
--

trags3
Posts: 418
Joined: Wed Apr 09, 2014 1:58 am
Location: Las Vegas, NV

Re: could not locate device support files

Post by trags3 » Mon Feb 25, 2019 11:10 pm

Hi Panos,
I have 1 Apple Development Certificate expiring on July 23, 2019
I have 1 Key
Screen Shot 2019-02-25 at 1.47.45 PM.png
And I have 1 provisioning profile.
Screen Shot 2019-02-25 at 1.53.55 PM.png
There are 2 devices and the one that I am using connects to the MacBook both with a cable and with the network.

Does my main stack need to be named like either the provisioning profile or the Development Certificate?

Here is a screenshot of my Standalone settings.

[/attachment]
Screen Shot 2019-02-25 at 2.05.14 PM.png
Thanks for the help,

Tom

LiveCode_Panos
Livecode Staff Member
Livecode Staff Member
Posts: 818
Joined: Fri Feb 06, 2015 4:03 pm

Re: could not locate device support files

Post by LiveCode_Panos » Tue Feb 26, 2019 7:11 am

Hello Tom,

You need to uncheck "beta version" from the iOS standalone settings. This option is incompatible with development provisioning profiles.

Please let us know if this fixes the problem.

Kind regards,
Panos

trags3
Posts: 418
Joined: Wed Apr 09, 2014 1:58 am
Location: Las Vegas, NV

Re: could not locate device support files

Post by trags3 » Tue Feb 26, 2019 2:34 pm

Hi Panos,
Thank You,

I had checked it because it didn't work without it being checked.
Just un checked Beta version and I get the same result. :(

Tom

trags3
Posts: 418
Joined: Wed Apr 09, 2014 1:58 am
Location: Las Vegas, NV

Re: could not locate device support files

Post by trags3 » Tue Feb 26, 2019 2:42 pm

Hi Panos,

I have switched to LC 9.0.3 RC 1 and Xcode 10.1. Running on MacBook Air Mac OS Mojave Ver 10.14.3.

The iPhone is iPhone 8 Plus iOS 12.1.4

Tom

LiveCode_Panos
Livecode Staff Member
Livecode Staff Member
Posts: 818
Joined: Fri Feb 06, 2015 4:03 pm

Re: could not locate device support files

Post by LiveCode_Panos » Tue Feb 26, 2019 3:55 pm

Hello Tom,

Ok, interesting. BTW the "beta version" needs to be unchecked when you use a development provisioning profile.

Next things to check:

1. Could you provide a screenshot of the second ("Requirements") tab of the iOS standalone settings?
2. Is the device ID of this iPhone 8 Plus associated with this provisioning profile?

Best,
Panos
--

trags3
Posts: 418
Joined: Wed Apr 09, 2014 1:58 am
Location: Las Vegas, NV

Re: could not locate device support files

Post by trags3 » Tue Feb 26, 2019 4:08 pm

Hi Panos,
Here is the Screen shot.
Image

The iPhone is one of 2 devices I have listed in my Devices. The 6s is not in use anymore.
Image

Thanks Tom
Attachments
Screen Shot 2019-02-26 at 7.05.39 AM.png
Screen Shot 2019-02-26 at 6.59.54 AM.png

LiveCode_Panos
Livecode Staff Member
Livecode Staff Member
Posts: 818
Joined: Fri Feb 06, 2015 4:03 pm

Re: could not locate device support files

Post by LiveCode_Panos » Tue Feb 26, 2019 4:20 pm

Hello Tom,

The iOS standalone settings look fine. RE the device ID, you need to check if it is included in the device IDs that this provisioning profile is associated with. So click on this provisioning profile, then click Edit, and see if this device is checked:
Attachments
Screen Shot 2019-02-26 at 17.20.11.png

trags3
Posts: 418
Joined: Wed Apr 09, 2014 1:58 am
Location: Las Vegas, NV

Re: could not locate device support files

Post by trags3 » Tue Feb 26, 2019 5:04 pm

Hi Panos,
I didn't see how to edit but here is a screenshot of the devices associated with the provision profile.
Image

the second one is my 8+

Thanks,
Tom
Attachments
Screen Shot 2019-02-26 at 8.01.19 AM.png
Screen Shot 2019-02-26 at 8.01.19 AM.png (21.61 KiB) Viewed 9454 times

trags3
Posts: 418
Joined: Wed Apr 09, 2014 1:58 am
Location: Las Vegas, NV

Re: could not locate device support files

Post by trags3 » Tue Feb 26, 2019 5:48 pm

Hi Panos,
Do I need icons?
In the past when I tested on iPhone a generic icon was used for the app.
I just went into the icons section of settings and deleted the reference to some icon files that are no longer on my Mac.
i'm not sure when but the test button on LC turned from greyed out to black. I tried to test and the iPhone screen pops up but is not able to load.
Tom

LiveCode_Panos
Livecode Staff Member
Livecode Staff Member
Posts: 818
Joined: Fri Feb 06, 2015 4:03 pm

Re: could not locate device support files

Post by LiveCode_Panos » Tue Feb 26, 2019 6:00 pm

Hello Tom,

You do need icons if you submit the app to the AppStore. If you just want to test on your device, it is not necessary. A generic icon will be used instead.

RE the device IDs, where did you get the screenshot you attached? It does not look like it is from https://developer.apple.com/account/

If you want to edit your provisioning profile, you have to select it in https://developer.apple.com/account/ios/profile/ and click on the Edit button. After that, if you scroll down, you should see which devices are included in this provisioning profile. It is not necessary that all of your registered devices will be included in this provisioning profile. So if you try to install the standalone that was signed with this profile into a device that is not included in the profile devices, it will fail.

Now, RE the issue of the simulator not loading, try to open the simulator from Xcode first (launch Xcode and choose Xcode -> Open Developer Tool -> Simulator from Xcode's menubar). Then, when the simulator is up and running, return to LC, make sure the simulator is selected in Development -> Test target, and then click on the Test button.

BTW what is the output of the following command in the terminal?

Code: Select all

xcode-select -p
Kind regards,
Panos
--

trags3
Posts: 418
Joined: Wed Apr 09, 2014 1:58 am
Location: Las Vegas, NV

Re: could not locate device support files

Post by trags3 » Tue Feb 26, 2019 6:18 pm

Panos
The screenshot was from Finder on my Mac. Went to the library folder Mobile provisioning profiles. Scrolled down to the Devices.

How do I get to the terminal?

Tom

Post Reply

Return to “iOS Deployment”