Wednesday Oct 31, 2012

Workaround for an Xcode/iOS SDK Issue...

Hi, everyone:

When you are doing ADF Mobile development, and you need to deploy the application to an iOS device, you would need to compile/deploy the app with iOS App Certificates and Provisioning Profile. This means you would need to "Deploy to Package" or "Deploy to iTunes" during deployment, and configure JDeveloper with the proper certificates/profiles. In some instances (exact combination is still not clear), deploy and signing the application to generate the ipa file may fail with similar error message at the end of the deployment log:

[01:04:45 PM] Deployment failed due to one or more errors returned by '/usr/bin/xcrun'. The following is a summary of the returned error(s): Command-line execution failed (Return code: 1) error: /usr/bin/codesign --force --preserve-metadata=identifier,entitlements,resource-rules --sign iPhone Distribution: Oracle Corporation --resource-rules=/var/folders/x7/21sjrpx13qj9tq20z14s3j_w0000gn/T/tkROhP11qU/Payload/HelloWorld.app/ResourceRules.plist --entitlements /var/folders/x7/21sjrpx13qj9tq20z14s3j_w0000gn/T/tkROhP11qU/entitlements_plistEINPBkIG /var/folders/x7/21sjrpx13qj9tq20z14s3j_w0000gn/T/tkROhP11qU/Payload/HelloWorld.app failed with error 1. Output: /var/folders/x7/21sjrpx13qj9tq20z14s3j_w0000gn/T/tkROhP11qU/Payload/HelloWorld.app: replacing existing signature Program /usr/bin/codesign returned 1 : [/var/folders/x7/21sjrpx13qj9tq20z14s3j_w0000gn/T/tkROhP11qU/Payload/HelloWorld.app: replacing existing signature

This issue is a known issue and is not related to ADF Mobile. The workaround is discussed in this article from StackOverflow.

This article refers to the old location of Xcode, so you would need to adjust the paths accordingly. The path for Xcode 4.3 and above would be like:

/Applications/Xcode.app/Contents//Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/PackageApplication to this script file.

To modify it, you probably can’t use Text Editor. I end up opening a terminal session, changed the file permission, and used vi to update it.

Thanks,

Oracle ADF Mobile Product Management Team

Resources to Help You Getting Up To Speed on ADF Mobile

Hi, everyone:

By now, I hope you would have a chance to review the sample applications and try to deploy it.  This is a great way to get started on learning ADF Mobile.  To help you getting started, here is a central list of "steps to get up to speed on ADF Mobile" and related resources that can help you developing your mobile application.
    1. Check out the ADF Mobile Landing Page on the Oracle Technology Network.
    2. View this introductory video.
    3. Read this Data Sheet and FAQ on ADF Mobile.
    4. JDeveloper 11.1.2.3 Download.
      • Download the generic version of JDeveloper for installation on Mac.
      • Note that there are workarounds required to install JDeveloper on a Mac.
    5. Download ADF Mobile Extension from JDeveloper Update Center or Here.
      • Please note you will need to configure JDeveloper for Internet access (In HTTP Proxy preferences) in order the install the extension, as the installation process will prompt you for a license that's linked off Oracle's web site.
    6. View this end-to-end application creation video.
    7. View this end-to-end iOS deployment video if you are developing for iOS devices.
    8. Configure your development environment, including location of the SDK, etc in JDeveloper-Tools-Preferences-ADF Mobile dialog box.  The two videos above should cover some of these configuration steps.
    9. Check out the sample applications shipped with JDeveloper, and then deploy them to simulator/devices using the steps outlined in the video above.  This blog entry outlines all sample applications shipped with JDeveloper.
    10. Develop a simple mobile application by following this tutorial.
    11. Try out the Oracle Open World 2012 Hands on Lab to get a sense of how to programmatically access server data.  You will need these source files.
    12. Ask questions in the ADF/JDeveloper Forum.
    13. Search ADF Mobile Preview Forum for entries from ADF Mobile Beta Testing participants.
    14. For all other questions, check out this exhaustive and detailed ADF Mobile Developer Guide.
    15. If something does not seem right, check out the ADF Mobile Release Note.


Thanks,

Oracle ADF Mobile Product Management Team
About

This blog is is dedicated to tips and tricks for developing, integrating, securing, and managing mobile applications using Oracle Mobile Platform. It is created and maintained by the Mobile Suite/Oracle ADF Mobile product development team.

Archive of past entries

Even More Mobile Development Blogs

Oracle A-Team Site - Mobile Related Entries

Code samples from the Community

Fusion Middleware Blogs

Search

Archives
« October 2012 »
SunMonTueWedThuFriSat
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
20
21
23
24
25
26
27
28
30
   
       
Today