iOS 11 device install error: ERROR: Install failed. Got error "APIInternalError".

I’ve been beating my head against the wall over this for the past hour. I have the latest version of iOS 11.0.2. Corona daily build  2017.3158 (2017.10.9), OS X 10.12.6, and XCode Version 9.0 (9A235). When building and either copying to my iPhone 6S or sending to a live build, I get the following error:

Installing ‘Tip Calc.app’ on David_Meyer’s_iPhone …
ERROR: Install failed. Got error “APIInternalError”.
Uploading Tip Calc.app package contents… DONE.
Installing ‘(null)’
Install: CreatingStagingDirectory (5%)
Install: ExtractingPackage (15%)
Install: InspectingPackage (20%)
Install: TakingInstallLock (20%)
Install: PreflightingApplication (30%)
Install: InstallingEmbeddedProfile (30%)
Install: VerifyingApplication (40%)
 

When I try to build and save to a file, that works, but when I try to install it in Xcode, I get this pop-up:

App installation failed

Could not write to the device

Any idea what could be causing this?

Can you close all the apps and reboot and see if this is still an issue?

Thanks

Rob

I just restarted the Mac as well as the phone (for good measure). Built a new provisioning profile, just in case. I get the same behavior both from Corona when I try to copy to the device after building, and in Xcode when I try to install it from Devices and Simulators.

David

OK, I figured out what was going on. I tested this out on an iPad with iOS 10.3.3 and it built and installed perfectly. Hmmm, device-specific issue. Then I had a vague recollection of a bad battery on my iPhone 6S, a visit to the Apple Store, and clumsy Apple Genius that busted my iPhone 6S, and walking away with a iPhone 6S. The problem, therefore, was that the wrong UDID was in my dev account. removing the old one and adding the new 6S fixed the problem.

The odd thing was that I wasn’t getting the “no valid provisioning profile” message in Corona, which is what I would have expected. But yeah, it’s fixed. Back to our regularly scheduled program. :confused:

David

I’m glad you figured it out. 

Rob

Can you close all the apps and reboot and see if this is still an issue?

Thanks

Rob

I just restarted the Mac as well as the phone (for good measure). Built a new provisioning profile, just in case. I get the same behavior both from Corona when I try to copy to the device after building, and in Xcode when I try to install it from Devices and Simulators.

David

OK, I figured out what was going on. I tested this out on an iPad with iOS 10.3.3 and it built and installed perfectly. Hmmm, device-specific issue. Then I had a vague recollection of a bad battery on my iPhone 6S, a visit to the Apple Store, and clumsy Apple Genius that busted my iPhone 6S, and walking away with a iPhone 6S. The problem, therefore, was that the wrong UDID was in my dev account. removing the old one and adding the new 6S fixed the problem.

The odd thing was that I wasn’t getting the “no valid provisioning profile” message in Corona, which is what I would have expected. But yeah, it’s fixed. Back to our regularly scheduled program. :confused:

David

I’m glad you figured it out. 

Rob