Guest User

Exit Code 1

a guest
Jun 22nd, 2011
124
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Hello Rennie,
  2. >
  3. > Thank you for contacting Apple Developer Technical Support (DTS).
  4. >
  5. > ** Please note: The following instructions are for Xcode 4. If you are
  6. > using Xcode 3.x instead, scroll down to the "STEPS FOR XCODE 3" section
  7. > below. **
  8. >
  9. > There are a number of configuration settings throughout Xcode and the
  10. > system which can contribute to code signing errors. Please perform the
  11. > following 8 steps to ensure that your project configuration is correct:
  12. >
  13. > 1) Read Tech Note "TN2250"
  14. >
  15. > Please read "TN2250: Understanding and Resolving Code Signing Issues"
  16. > located here:
  17. > http://developer.apple.com/library/ios/#technotes/tn2250/_index.html
  18. > This technical note supplements the Developer Program User Guide located on
  19. > the iOS Provisioning Portal under the "Portal Resources" section.
  20. >
  21. > 2) Verify the "iOS Deployment Target" is set to the intended value under
  22. > both the project, and target.
  23. >
  24. > The "iOS Deployment Target" Xcode setting defines the iOS software version
  25. > your application is built for; it specifies the lowest version of iOS
  26. > Devices your application will support. For example, the lowest available
  27. > setting for iPad applications is iOS 3.2.
  28. >
  29. > To verify this setting, choose the Xcode "View" menu > Navigators >
  30. > Project, and then select your root project folder in the upper left corner.
  31. > The Project Editor will appear in the center pane. Make sure Deployment
  32. > Target is set to the intended value in both locations: pick your project
  33. > under the "PROJECT" section, then click the "Info" tab > iOS Deployment
  34. > Target. Also click your target under the "TARGETS" section, then click the
  35. > "Summary" tab > Deployment Target setting.
  36. >
  37. > 3) Verify your "Base SDK" setting is "Latest iOS (..)" in both locations:
  38. > Project Editor > Project > "Build Settings" tab, and Project Editor > Target
  39. > > "Build Settings" tab. If you are building to your development device, the
  40. > Base SDK version number defined on your Xcode project must be greater than
  41. > or equal to the software version number on your development device;
  42. > otherwise Xcode cannot initiate a debugging session with the device. If that
  43. > is the case, you will need to download and install the latest iOS SDK
  44. > version that is greater than or equal to your device software version.
  45. >
  46. > 4) Verify your Target Code Signing Identity settings are correct.
  47. >
  48. > Choose the Xcode "View" menu > Navigators > Project, and then select your
  49. > root project folder in the upper left corner. This will open the Project
  50. > Editor in the center pane. Click on your target in the "TARGETS" section,
  51. > then click the "Build Settings" tab. Scroll down to the Code Signing
  52. > section. Click on the Grey Disclosure Triangle to the left of the "Code
  53. > Signing Identity" setting to expand and make visible the settings for
  54. > "Debug", "Release", and "Any iOS SDK".
  55. >
  56. > If you are building to your development device, verify that the Code
  57. > Signing Identity setting for "Debug" has a child setting named "Any iOS
  58. > SDK". Set the Value column (that is to the right of the text "Any iOS SDK",
  59. > under "Debug") to the correct "iPhone Developer" provisioning profile. In
  60. > most cases, it is recommended that you pick the value "iPhone Developer"
  61. > under the "Automatic Profile Selector" section of the pop-up selection menu
  62. > (this allows Xcode to pick the correct provisioning profile for you).
  63. > However, if your application is using Push Notification, Game Center, or
  64. > In-App Purchases, note that you need to create an explicit App ID and
  65. > Development Provisioning Profile specifically for that App ID (this is done
  66. > on the iOS Provisioning Portal website); in the latter case, set the "Any
  67. > iOS SDK" setting (under "Debug") equal to the provisioning profile created
  68. > specifically for this application.
  69. >
  70. > If instead you are building a distribution binary, verify that the Code
  71. > Signing Identity setting for "Release" has a child setting named "Any iOS
  72. > SDK". Set the Value column (that is to the right of the text "Any iOS SDK",
  73. > under "Release") to the correct "iPhone Distribution" provisioning profile.
  74. > In most cases, it is recommended that you pick the value "iPhone
  75. > Distribution" under the "Automatic Profile Selector" section of the pop-up
  76. > selection menu (this allows Xcode to pick the correct provisioning profile
  77. > for you). However, note that you need to create a distribution provisioning
  78. > profile for your App ID (whether it is a wildcard App ID, or not) on the iOS
  79. > Provisioning Portal, and install it into Xcode. If you have not done so
  80. > already, do that according to the steps in the section "Publishing Your
  81. > Application for Distribution" (if you are building a binary for App Store
  82. > submission) or section "Publishing Your Application for Testing" (if you are
  83. > building a binary for Ad Hoc testing)
  84. >
  85. > Note that you may not be able to select your provisioning profile from the
  86. > Provisioning Profile section pop-up menu if your "Bundle Identifier" (a.k.a
  87. > "Identifier") setting defined in your Xcode project is not compatible with
  88. > the App ID that is associated with your Provisioning Profile. In that case,
  89. > perform step 5 and then come back to this step to try your Provisioning
  90. > Profile assignment again.
  91. >
  92. > 5) Verify the Bundle ID defined in your project matches the App ID
  93. > associated with your Active Provisioning Profile.
  94. >
  95. > The Bundle Identifier setting on your app's Xcode Project must be
  96. > compatible with the App ID associated with your Provisioning Profile. To
  97. > define the Bundle Identifier in your Xcode project, choose the Xcode "View"
  98. > menu > Navigators > "Project" option, then select your root project folder
  99. > in the upper left corner. The Project Editor will appear in the center pane.
  100. > Select your target in the "TARGETS" section, then click the "Info" tab.
  101. > Enter your bundle identifier in the "Bundle identifier" field. If a wildcard
  102. > asterisk character is present in your App ID, replace the asterisk with an
  103. > appropriate string using reverse-DNS format for the Bundle Identifier
  104. > defined on your Xcode project.
  105. >
  106. > Here are some example App IDs and compatible corresponding Bundle
  107. > Identifier values defined in Xcode:
  108. > If your App ID is A1B2C3D4E5.com.domainname.applicationname enter
  109. > com.domainname.applicationname as your Bundle Identifier.
  110. > If your App ID is A1B2C3D4E5.com.domainname.* enter
  111. > com.domainname.ichosethisappname as your Bundle Identifier.
  112. > If your App ID is A1B2C3D4E5.* enter any string you like using reverse-DNS
  113. > format as your Bundle Identifier.
  114. >
  115. > For more information about Wild Card App ID's read Technical Q&A "1713"
  116. > located here:
  117. > http://developer.apple.com/library/ios/#qa/qa2010/qa1713.html
  118. >
  119. > To ensure the Xcode project Bundle Identifier matches your Provisioning
  120. > Profiles, go to Project Editor > Target > "Build Settings" tab, and scroll
  121. > down to the "Code Signing Identity" section. If you are building to your
  122. > development device, click the Value column under "Debug" that is to the
  123. > right of "Any iOS SDK". In the provisioning profile selection pop-up, check
  124. > that the current selection reads "For Application Identifiers: " with the
  125. > intended App ID. If you are building a distribution binary, click the value
  126. > column under "Release" that is to the right of "Any iOS SDK". In the
  127. > provisioning profile selection pop-up, check that the current selection
  128. > reads "For Application Identifiers: " with the intended App ID.
  129. >
  130. > 6) If you are building to device during development, indicate to Xcode that
  131. > your device may be used for development, and make sure that your target
  132. > device is added to your Devices list on the Provisioning Portal.
  133. >
  134. > Choose the Xcode "Window" menu > Organizer, and click the Devices tab.
  135. > Select the device from the left-pane. In the center pane, click the button
  136. > "Use for Development" (if you have not already done so; this is a one-time
  137. > indication per device).
  138. >
  139. > A) If you are a team "Agent" or "Admin" within your developer
  140. > program, follow these steps: choose the Xcode "Window" menu > Organizer, and
  141. > click the Devices tab. Right-click the target device under the "DEVICES"
  142. > section of the left-sidebar, and choose "Add Device to Provisioning Portal".
  143. > If prompted, enter your developer program credentials into the popup, and
  144. > click OK. This will queue your device to be included into the Team
  145. > Provisioning Profile or other development provisioning profiles.
  146. >
  147. > B) If you are not a team "Agent" or "Admin", follow these steps:
  148. > choose the Xcode "Window" menu > Organizer, and click the Devices tab.
  149. > Select the target device under the "DEVICES" section of the left-sidebar.
  150. > Select and copy to the clipboard the 40-digit hexadecimal "Identifier"
  151. > string and send that to your team agent or admins and ask that they ensure
  152. > the identifier associated with your device is added into the "Devices"
  153. > section of the provisioning portal. This will queue your device to be
  154. > included into the Team Provisioning Profile or other development
  155. > provisioning profiles.
  156. >
  157. > 7) Verify "Automatic Device Provisioning" is enabled, and Refresh your
  158. > Provisioning Profiles.
  159. >
  160. > Choose the Xcode "Window" menu > Organizer, and click the Devices tab.
  161. > Select "Provisioning Profiles" from the "Library" section on the sidebar.
  162. > All of the Provisioning Profiles that are installed on your machine will be
  163. > listed in the center pane. Then perform the following steps:
  164. > A) Connect your iOS development device to your computer using the
  165. > USB data cable.
  166. > B) In the footer-pane, check the "Automatic Device Provisioning"
  167. > checkbox.
  168. > C) Click the "Refresh" button.
  169. > D) If a dialog appears, enter your iOS Developer Program account
  170. > credentials.
  171. >
  172. > This process will create/download or refresh the following, your "iPhone
  173. > Developer" and "iPhone Distribution" Certificates, and your wildcard "Team
  174. > Provisioning Profile" which allows you to build to your iOS development
  175. > device. If you plugged in a development device then it will also install or
  176. > update profiles on the device as appropriate. The "Refresh" process will
  177. > automatically renew any expired Certificates or Provisioning Profiles with
  178. > new ones as needed.
  179. >
  180. > If after performing steps 1-6 any configuration changes were made, please
  181. > try again to either build to device for development, or build your
  182. > distribution binary. If your problem persists, please continue to the next
  183. > step.
  184. >
  185. > 8) Send us screenshots of your configuration.
  186. >
  187. > Please send us the following eight (8) screenshots to help us review your
  188. > configuration. To take a screenshot in Mac OS X, press: Command+Shift+3.
  189. > Please do not crop the screenshots after they are created - it is important
  190. > that all of the screen is visible in each screenshot.
  191. >
  192. > Screenshots 1-3: "Target" Properties
  193. >
  194. > Choose the Xcode "View" menu > Navigators > Project, and select your root
  195. > project folder in the upper left corner. This will open the Project Editor
  196. > in the center pane. Select your Target under the "Targets" section,
  197. > A) click the "Summary" tab and take a screenshot.
  198. > B) select the "Build Settings" tab and scroll down to the Code
  199. > Signing section. Make the entire Code Signing section visible and take a
  200. > screenshot.
  201. > C) if you are building to device during development, select the
  202. > value column for the row under the "Debug" that is to the right of "Any iOS
  203. > SDK". Take a screenshot which includes the pop-up menu displaying your
  204. > current selection and available selections. However, if you are building a
  205. > distribution binary, select the value column for the row under
  206. > "Distribution" (or "Release") that is to the right of "Any iOS SDK". Take a
  207. > screenshot which includes the pop-up menu displaying your current selection
  208. > and available selections.
  209. >
  210. > Screenshots 4-5: Scheme toolbar Pop-up Menu
  211. >
  212. > A) In your Xcode project window, select the Scheme pop-up menu in the
  213. > upper-left corner on the toolbar, and take a screenshot with the pop-up
  214. > showing both, your current Scheme selection and available scheme selections.
  215. > B) In the Scheme Pop-up, choose "Edit Scheme". The Edit Scheme window
  216. > displays. Make sure that you have the current Scheme selected that you are
  217. > using to build (in the upper-left selection field labeled "Scheme") and take
  218. > a screenshot.
  219. >
  220. > Screenshot 6: Keychain Access
  221. >
  222. > Open "Keychain Access" (in /Applications/Utilities) and type "iPhone" into
  223. > the search field in the upper-right corner of the window. If you are
  224. > building to device during development, select the certificate that starts
  225. > with "iPhone Developer:" and take a screenshot. Otherwise, if you are
  226. > building a distribution binary, select the certificate that starts with
  227. > "iPhone Distribution:" and take a screenshot. In the header view there
  228. > should be a green circle with a check mark to indicate the certificate is
  229. > valid.
  230. >
  231. > Screenshots 7-8: Organizer Window for Installed Provisioning Profiles
  232. >
  233. > Choose the Xcode "Window" menu > Organizer, and click the Devices tab.
  234. > Select "Provisioning Profiles" from the "Library" section on the sidebar.
  235. > All of the Provisioning Profiles that are installed on your machine will be
  236. > listed in the center pane. Take a screenshot. If you are building to device
  237. > during development, take another screenshot as follows: under the "Devices"
  238. > section of the sidebar, select "Provision Profiles" under the target
  239. > (plugged in) device. All of the Provisioning Profiles that are installed on
  240. > this device will be listed in the center pane. Take a screenshot.
  241. >
  242. > Close the Organizer Window.
  243. >
  244. > You should have 7 or 8 screenshots depending on whether you're building a
  245. > distribution binary, or building to device during development, respectively.
  246. > Finally, within Finder, use the File > Compress menu option to archive the
  247. > screenshots to a zip file and send them in reply to this email.
  248. >
  249. > ------------------------
  250. > STEPS FOR XCODE 3
  251. >
  252. > The majority of code signing errors are the result of iPhone
  253. > Developer/Distribution certificates and provisioning profiles not being
  254. > correctly installed on your development system.
  255. >
  256. > As a result, we recommend a two-step process to help you resolve this
  257. > issue.
  258. >
  259. > 1. Read Tech Note TN2250
  260. >
  261. > Please read through TN2250 Understanding and Resolving Code Signing Issues
  262. > <http://developer.apple.com/iphone/library/technotes/tn2010/tn2250.html>.
  263. > This technical note supplements the Program User Guide located on the
  264. > home page of the iPhone Developer Program Provisioning Portal under Portal
  265. > Resources.
  266. >
  267. > 2. Send Us Screen Shots of Your Configuration
  268. >
  269. > If, after reading the Technical Note and verifying your configuration you
  270. > are still having code signing issues, sending us the following set of screen
  271. > shots of your current situation will help us help you with this issue.
  272. >
  273. > There are eight screenshots we will need from you to clearly understand
  274. > your configuration.
  275. >
  276. > Screenshot 1: Project Base SDK
  277. >
  278. > In your Xcode project, choose Project->Edit Project Settings and select the
  279. > General tab. Select the pop-up next to "Base SDK for All Configurations,"
  280. > and take a screen shot of the Project General Info including the Base SDK
  281. > pop-up menu. It is recommended that the selection for the pop-up menu "Base
  282. > SDK for All Configurations" starts with "Latest iOS". If you don't have a
  283. > selection that starts with "Latest iOS" selected, then you will need to make
  284. > sure you have the correct iOS version selected every time you update your
  285. > Xcode to one that has a new iOS SDK.
  286. >
  287. > Screenshot 2: Overview toolbar Pop-up Menu
  288. >
  289. > Again in your Xcode project, select the Overview toolbar pop-up menu. Make
  290. > sure you are building for a device, and that you have the correct active
  291. > configuration selected. Take a screen shot of the Overview pop-up menu
  292. > showing your current selections.
  293. >
  294. > Screenshots 3: Keychain Access
  295. >
  296. > Open "Keychain Access" application's main window and type in "iPhone" into
  297. > the search field in the top left corner of the window, then select the
  298. > "Certificates" category. If you are trying to deploy to your device for
  299. > development select the certificate that starts with the title "iPhone
  300. > Developer:," or if you are trying to distribute your application select the
  301. > certificate that starts with the title "iPhone Distribution:." In the
  302. > information view there should be a green circle with a check mark to
  303. > indicate that the certificate is valid. Grab a screen shot
  304. > (Command-Shift-3).
  305. >
  306. > If you don't see a disclosure triangle next to a certificate this means
  307. > your keychain doesn't have your private key for that certificate. Importing
  308. > the private key for your iPhone Developer/Distribution Certificate from a
  309. > backup will correct this. If you have lost or deleted your private key you
  310. > will need to delete the certificate from your keychain, revoke your old
  311. > certificate in the iPhone Provisioning Portal and then use Automatic Device
  312. > Provisioning to create a new private key and certificate.
  313. >
  314. > Replacing your private key or certificates will not affect applications
  315. > already on the App Store.
  316. >
  317. > Screenshot 4-5: Organizer Windows
  318. >
  319. > You may take two screen shots for this step. First, open the "Organizer"
  320. > under the Window menu in Xcode. Then, under the Development turn down,
  321. > select Provisioning Profiles. Update your profiles and certificates as
  322. > described bellow.
  323. >
  324. > Beginning in Xcode 3.2.2, Xcode has the ability to create and update your
  325. > expired certificates and provisioning profiles for you automatically from
  326. > within the Xcode Organizer.
  327. >
  328. > In the Xcode Organizer, select Provisioning Profiles in the DEVELOPMENT
  329. > group.
  330. >
  331. > 0. Plugin your development iOS device into your development computer.
  332. >
  333. > 1. Select the checkbox next to the Automatic Device Provisioning option.
  334. >
  335. > 2. Click the Refresh button.
  336. >
  337. > 3. In the dialog that appears, enter your iOS Developer Program
  338. > credentials.
  339. >
  340. > This process will create and download your developer certificates and a
  341. > wild card team provisioning profile you can use for development, if your
  342. > plugged in a development device then it will also update install or update
  343. > profiles on the device as appropriate. This process will also update your
  344. > certificates and Provisioning Profiles as needed with new ones that have new
  345. > expiration dates.
  346. >
  347. > Once you have updated them if needed, take a screen shot of the
  348. > Provisioning Profiles installed on your development machine. Then, still in
  349. > the Organizer window, if you are attempting to deploy to a device to a
  350. > device for testing select the iPhone device (under the Devices disclosure
  351. > triangle) and take a screen shot of Provisioning Profiles installed on your
  352. > device.
  353. >
  354. > Screenshot 6: Target Properties Tab
  355. >
  356. > Back in your Xcode project, choose Project->Edit Active Target, and select
  357. > the Properties tab. Take a screen shot of the Target info window showing
  358. > the Properties tab. It is important that the Identifier field in Xcode
  359. > matches the Bundle Identifier portion of the App ID for the provisioning
  360. > profile you intend to use for code signing. If the App ID for the intended
  361. > provisioning profile contains a wild card then remember to replace the
  362. > asterisk with an appropriate string using the reverse-DNS format when you
  363. > fill in the Bundle Identifier field in your Xcode project.
  364. >
  365. > For more information about Wild Card App ID's read Q&A 1713:
  366. > http://developer.apple.com/library/ios/#qa/qa2010/qa1713.html
  367. >
  368. > Screenshot 7: Target Code Signing Identity
  369. >
  370. > Still in your Target settings select the Build tab and scroll down to Code
  371. > Signing. In the Code Signing Section there should be a Code Signing
  372. > Identity with a disclosure triangle next to it. The Code Signing Section
  373. > should look like Figure 3 in TN2250 linked to above. Make sure the setting
  374. > is for "Any iOS," and then select the pop-up menu in the value column. Take
  375. > a screen shot of the Target info window including the pop-up menu.
  376. >
  377. > If the private key for your iPhone Developer/Distribution Certificate is
  378. > missing, you will be unable to select the Provisioning Profile associated
  379. > with that certificate. Importing the private key for your iPhone
  380. > Developer/Distribution Certificate from a backup will correct this. If you
  381. > have lost or deleted your private key you will need to delete the
  382. > certificate from your keychain and revoke your old certificate in the iPhone
  383. > Provisioning Portal and then use Automatic Device Provisioning to create a
  384. > new private key and certificate.
  385. >
  386. > Screenshot 8: Project Code Signing Identity
  387. >
  388. > The eight screenshot is just like the seventh screenshot, but using the
  389. > Project settings. In your Xcode project, choose Project->Edit Project
  390. > Settings and select the Build tab and scroll down to Code Signing. In the
  391. > Code Signing Section there should be a Code Signing Identity with a
  392. > disclosure triangle next to it. The Code Signing Section should look like
  393. > Figure 3 in TN2250 linked to above, but make sure the setting is for "Any
  394. > iOS," and the value is "Don't Code Sign," and then select the pop-up menu in
  395. > the value column. Target settings override project settings, so it is easier
  396. > if changes to the code signing section are only made in only one place, the
  397. > target settings. Take a screen shot of the Project info window.
  398. >
  399. > This makes a total of 8 screenshots if you are trying to deploy to a
  400. > device. If you are trying to submit to the app store you should have seven
  401. > screenshots. Use Finders File > Compress menu item to archive them into a
  402. > .zip file and send them in a reply to this email.
  403. >
  404. > Best Regards,
  405. >
  406. > Maurice Cusseaux
  407. > Developer Technical Support
  408. > Apple Worldwide Developer Relations
RAW Paste Data