[TIMOB-15970] Can't select ad-hoc provisioning profile
GitHub Issue | n/a |
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2014-01-23T00:23:20.000+0000 |
Affected Version/s | n/a |
Fix Version/s | 2013 Sprint 26, 2013 Sprint 26 Core, 2014 Sprint 02, 2014 Sprint 02 Core, Release 3.1.4, Release 3.2.0, Release 3.3.0 |
Components | iOS |
Labels | appcelerator_smoke, ios, qe-closed-3.2.0, qe-manualtest |
Reporter | Peter Evans |
Assignee | Chris Barber |
Created | 2013-12-10T21:22:19.000+0000 |
Updated | 2014-08-08T16:45:09.000+0000 |
Description
When attempting to build an ad-hoc distribution, the provisioning profiles, that previously worked, are not displayed and therefore cannot be selected.
Attempted measures
- Deletion of /Applications/Titanium\ Studio
- Deletion of ~/Library/Application\ Support/Titanium
- Reinstallation of Appcelerator Titanium.
- Deletion of workspace .metadata directory
- Deletion of app .setting directory
Logfile contents:
!ENTRY com.aptana.core 1 0 2013-12-10 22:18:30.336
!MESSAGE (Build 3.1.4.201310171935) [INFO] com.aptana.core/debug/shell Running process:
Process: "/usr/local/bin/titanium" "--no-colors" "--no-prompt" "--no-banner" "status" "-o" "json"
Working directory: null
Environment: {ANALYTICS_SOURCE=studio, ANDROID_SDK=/Users/pete/android-sdk, APTANA_VERSION=3.1.4.1381354727, Apple_PubSub_Socket_Render=/tmp/launch-xDsNxv/Render, CLICOLOR=1, DISPLAY=/tmp/launch-C9niNC/org.macosforge.xquartz:0, HOME=/Users/pete, JAVA_HOME=/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home, LANG=en_US.UTF-8, LESS=-X, LOGNAME=pete, PATH=/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin:/Users/pete/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/Users/pete/android-sdk/tools:/Users/pete/android-sdk/platform-tools:/Applications/MAMP/Library/bin:/Applications/Gnuplot.app/Contents/Resources/bin:/Applications/MAMP/bin/php/php5.4.4/bin, PWD=/Applications/Titanium Studio/TitaniumStudio.app/Contents/MacOS, SHELL=/bin/bash, SHLVL=1, SSH_AUTH_SOCK=/tmp/launch-fIhD3n/Listeners, TMPDIR=/var/folders/pm/shl9vq093q1cmk58w6vbss5r0000gn/T/, USER=pete, __CF_USER_TEXT_ENCODING=0x1F5:0:2, __CHECKFIX1436934=1, com.apple.java.jvmTask=JNI}
!ENTRY com.aptana.core 1 0 2013-12-10 22:18:31.089
!MESSAGE (Build 3.1.4.201310171935) [INFO] com.aptana.core/debug/shell Running process:
Process: "/usr/local/bin/titanium" "--no-colors" "--no-prompt" "--no-banner" "info" "-o" "json" "-t" "ios"
Working directory: /
Environment: {ANALYTICS_SOURCE=studio, ANDROID_SDK=/Users/pete/android-sdk, APTANA_VERSION=3.1.4.1381354727, Apple_PubSub_Socket_Render=/tmp/launch-xDsNxv/Render, CLICOLOR=1, DISPLAY=/tmp/launch-C9niNC/org.macosforge.xquartz:0, HOME=/Users/pete, JAVA_HOME=/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home, LANG=en_US.UTF-8, LESS=-X, LOGNAME=pete, PATH=/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin:/Users/pete/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/Users/pete/android-sdk/tools:/Users/pete/android-sdk/platform-tools:/Applications/MAMP/Library/bin:/Applications/Gnuplot.app/Contents/Resources/bin:/Applications/MAMP/bin/php/php5.4.4/bin, PWD=/, SHELL=/bin/bash, SHLVL=1, SSH_AUTH_SOCK=/tmp/launch-fIhD3n/Listeners, TMPDIR=/var/folders/pm/shl9vq093q1cmk58w6vbss5r0000gn/T/, USER=pete, __CF_USER_TEXT_ENCODING=0x1F5:0:2, __CHECKFIX1436934=1, com.apple.java.jvmTask=JNI}
!ENTRY com.appcelerator.titanium.mobile 1 0 2013-12-10 22:18:31.998
!MESSAGE (Build 3.1.4.201310171935) [INFO] com.appcelerator.titanium.mobile/debug/provisioning Retrieved number of profiles: 0
!ENTRY com.appcelerator.titanium.mobile 1 0 2013-12-10 22:18:31.999
!MESSAGE (Build 3.1.4.201310171935) [INFO] com.appcelerator.titanium.mobile/debug/provisioning Number of profiles after filtering: 0
!ENTRY com.appcelerator.titanium.mobile 1 0 2013-12-10 22:18:32.047
!MESSAGE (Build 3.1.4.201310171935) [INFO] com.appcelerator.titanium.mobile/debug/provisioning Retrieved number of profiles: 0
!ENTRY com.appcelerator.titanium.mobile 1 0 2013-12-10 22:18:32.048
!MESSAGE (Build 3.1.4.201310171935) [INFO] com.appcelerator.titanium.mobile/debug/provisioning Number of profiles after filtering: 0
!ENTRY com.appcelerator.titanium.mobile 1 0 2013-12-10 22:18:32.091
!MESSAGE (Build 3.1.4.201310171935) [INFO] com.appcelerator.titanium.mobile/debug/provisioning Retrieved number of profiles: 0
!ENTRY com.appcelerator.titanium.mobile 1 0 2013-12-10 22:18:32.093
!MESSAGE (Build 3.1.4.201310171935) [INFO] com.appcelerator.titanium.mobile/debug/provisioning Number of profiles after filtering: 0
Attachments
The problem is in
/usr/local/lib/node_modules/titanium/node_modules/node-appc/lib/ios.js
An attempt is made to base64 decode the entire developer certificate object, whereas the base64 value of interest is in the field"value"
of the certificate object. Change the line 207 from thisto this
to cure the problem.
This was fixed in Titanium SDK 3.2.0: https://github.com/appcelerator/titanium_mobile/blob/master/iphone/cli/lib/detect.js#L464. I doubt we'll backport this fix for 3.1.x.
Fixed as apart of TIMOB-5823.
Reopening to backport to 3.1.x!
Master pull request: https://github.com/appcelerator/node-appc/pull/74 3.1.x pull request: https://github.com/appcelerator/node-appc/pull/76 3.2.x pull request: https://github.com/appcelerator/node-appc/pull/75
Closing ticket as fixed. Verified I was able to select my adhoc provisioning profiles from AppcStudio, package my apps (Alloy and Classic), and install to device. Tested on: Appcelerator Studio, build: 3.2.0.201312181652 SDK build: 3.2.0.v20131218153242 CLI: 3.2.0-cr3 Alloy: 1.3.0-cr2 Xcode: 5.0.2 Devices: iphone 5 (6.1.3), iphone 5s (7.0.2)
Getting error while building for latest 3.1.4 with following versions of CLI 3.1.2, 3.2.0, 3.2.1-beta2. Not able to build for any platform.
The changes in the 3.1.X PR in this ticket need to be reverted (according to Chris Barber). Reopening. Environment: Appc Studio : 3.2.1.201401201818 Ti SDK : 3.1.4.v20140117150142 Mac OSX : 10.8.5 Alloy : 1.3.1-beta3 CLI: 3.1.2, 3.2.0, 3.2.1-beta2
Note: the error in Lokesh's last comment is the wrong error. His error is relating to TIMOB-16289.
3.1.x revert pr: https://github.com/appcelerator/node-appc/pull/82
Verified the fix. Able to build with latest 3.1.4 sdk. Closing. Environment: Appc Studio : 3.2.1.201401241158 Ti SDK : 3.1.4.v20140122162104 Mac OSX : 10.8.5 Alloy : 1.3.1-beta4 CLI - 3.2.1 beta3 Nexus 4 - android 4.4