[TIMOB-16325] iOS: Ad-hoc build fails with 'Invalid "--pp-uuid" value' error
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Won't Fix |
Resolution Date | 2015-11-16T17:23:02.000+0000 |
Affected Version/s | Release 3.2.0 |
Fix Version/s | n/a |
Components | iOS |
Labels | supportTeam |
Reporter | Mauro Parra-Miranda |
Assignee | Chris Barber |
Created | 2014-01-28T04:19:02.000+0000 |
Updated | 2017-05-08T12:43:30.000+0000 |
Description
Problem Description
Some users are having an issue when building ad-hoc distribution for iOS, with the message:
[ERROR] : Invalid "--pp-uuid" value "7C696B2E-FFBF-4017-BD16-843350656939"
[~mpmiranda] Any word on how to reproduce this issue? I understand this is caused by building from Studio and not directly from Xcode.
Hello Chris, not reproducible on my side. Yes, it's caused by building from Studio. Best, Mauro
On OSX 10.9.1, studio/CLI/SDK 3.2.1.GA and seeing this. Happy to help by providing more info.
Okay, this is no longer a problem for me. Here's what happened. I'm on a new machine. Hadn't had Xcode get all my profiles/certs/signing stuff yet. It had some, but the refresh didn't get all of them, so Titanium didn't see any certs. I would build in the above situation and see this bug. What I did to resolve it:
Going back into Xcode, Accounts, and refreshing the details page (profiles, certs, signing, etc)
Going back into Titanium, "Run Configurations," Application installer, the menus for choosing profiles updated, and now I can build fine.
Happy to provide more detail on that.still happening here, TiSDK 3.2.1, CLI 3.2.1, Titanium Studio 3.3.0. Xcode 5.0.2 I have this problem when I try to Archive my project from Xcode. Publishing directly from Studio works fine.
I also had this issue. However, after I tried the followings, the App was archived and submitted to App store successfully: 1. Under Project: select "iPhone Distribution : ..." as Code Signing Identity. select Distribution Provisioning Profile 2. Under Targets: use "iOS Developer" as Code Signing Identity use "None" as "Provisioning Profile" Not sure if it is a correct way. I also generated an Adhoc version to test in my phone. Seems ok. Now I am just waiting for Apple's Review.
I could reproduce the issue, building for iOS device. The work around: Run configuration and delete all existing configs, try to build again. Works for me. The environment tested: Mac osx 10.9.4 Maverics Appcelerator Studio, build: 3.4.0.201409131030 Titanium SDK, build: 3.4.0.v20140915084914 acs@1.0.16 alloy 1.5.0-rc2 install@0.1.7 npm@1.4.23 sudo@1.0.3 titanium 3.4.0-rc3 titanium-code-processor@1.1.1 Xcode6 Device: iPhone 5S iOS8
This happened to me after using Ti Studio to try building an archive for then app store, then switching back awhile later to Run > iOS Device > my phone; Clean project did not fix it. Quitting Ti Studio, then reopening it, and cleaning and building again solved it.
This happened to me when I plugged-in a fresh iPhone 5C, went through the motions to set it up through iTunes and the device walk-through, and finally added it as a device on Apple's developer console. I downloaded and applied the development provisioning profile certificate, and then closed opened Titanium Studio. I went to build, and I ran into the error "Invalid "--pp-uuid" value ..." Once this happened, I was able to get it to run properly by going to "Run Configurations" (as mentioned above), selecting the device, and hitting "Run". Just wanted to share what happened to me recently in case anyone can benefit from it.
Hi All, I am also facing the same issue while trying to generate IPA with Xcode 6.3. So i just want to know is there any updates on this ticket?
Hi Chris any news on this--we're trying to update our new app version and we are stuck...any help would really appreciate if you can check it ASAP. Thanks in advance Sean
[~supasnyder] Are you building from Studio? Are you doing an iOS ad-hoc distribution build? What Titanium SDK version are you using? What is your selected Titanium SDK? (run "ti sdk" from the terminal) What is the build output with TRACE level logging? (create a gist or pastebin and add a link to this ticket)
@Chris Barber, I will have @Silambarasan Raman reply back to your questions ASAP
Hi Chris Barber We are using To SDK 3.5.1 GA and building from Xcode 6.3. Yes we are using ad hoc distribution too.. We were building the IPA file from Xcode and uploaded to app store previously. Now we are facing an issue while try to update the same app. PS: I have checked by regenerate the certificates too. Getting the below issue while generate build to app store https://developer.appcelerator.com/question/161067/trying-to-archive-for-ad-hoc-but-gets-error-i-xcode---developer-name----pp-uuid
So, here's the deal. When you open a generated Titanium app in Xcode, then build it, the Xcode project's pre-compile phase runs a Titanium iOS build which skips all Xcode related tasks and simply compiles the JavaScript, copies images, generated i18n files, etc. Xcode sets a bunch of environment variables when spawning the Titanium iOS build, however none of them indicate with certainty whether the app is being built for device, appstore, or ad-hoc distribution. We currently look at the CURRENT_ARCH to determine if the value is i386, then we know you're doing a simulator build, otherwise we default to device builds. Since there's no way to distinguish between dist and device builds, the Titanium iOS build assumes device builds. This which means that Xcode is essentially calling
ti build \-p ios \-T device
in which case--pp-uuid
is required and hence the error message. There is no straightforward solution. We could hack something and look at one of the paths in the Xcode environment variables to try and determine a dist vs device build, but then how do we tell appstore from ad-hoc builds? Furthermore, if the Titanium iOS build is only compiling JS and copying images, why does it care what the target is? We just need the deploy type. This comes down to the Titanium iOS build not having first class support for building from Xcode. Could we fix it? Probably. Is it a priority? Unfortunately no. HOWEVER, I have a workaround! In Xcode, go to the project target you want to build (i.e. myapp-universal), then select "Build Phases". Expand the "Pre-Compile" phase. In the shell script, find the Titanium iOS build call and after the\-\-xcode
flag, add--target dist-adhoc --output-dir dist
. Then simply "archive" the app and you should be good to go. If you rebuild your Titanium app from Studio/CLI, then you'll need to change the pre-compile script again.Hi Chris Barber, Thanks for your info, Its solved an error, I have successfully update app to app store.
hi i have updated the pre compile phase but the error is not gone .please guide
In Titanium 5.0, we ripped out the Xcode pre-compile phase. This means we no longer build the app, then have Xcode call the Titanium CLI to copy files. By doing this, we sped up the build considerably at the cost of building directly from Xcode becoming more tricky.
Closing ticket as "Won't Fix".
am getting this error again
sdk 6.0.4GA
should you re-open this issue?
[~mike@warnes.com] Are you building from Appcelerator Studio or directly from Xcode? Are you on the latest version of Studio? Are you sure your provisioning profile is a valid adhoc provisioning profile (not expired, tied to correct app id)?
yes I have the latest updates, and the project was previously building quite happily for about 18 months! I'm building from studio, but tried building from xcode in desperation! Have regenerated all provisioning profiles, and certificates. Deleted everthing from cache, tried adding profiles through xcode and studio, but always the same result. I can run the application in debug on the simulator and the iphone so totally stumped at the moment. Clearly this has been happening on and off over the last few years