Search code examples
iosdeploymentjdeveloperxcode7.3oracle-maf

MAF application Deployment to iOS simulator in Jdeveloper


I am facing problems while deploying the Mobile Application Framework(MAF) application in JDeveloper to iOS stimulator.

The logs for deployment are as follows:

[11:25:18 AM] ----  Deployment started.  ----
[11:25:18 AM] Target platform is  (iOS).
[11:25:18 AM] Beginning deployment of MAF application 'ISSCMobile15.0' to iOS using profile 'iOS1'.
[11:25:18 AM] Checking to detect whether a partial deployment can be done.
[11:25:18 AM] The referenced iOS simulator, "FirstAvailable" is not available.
[11:25:18 AM] Detected: Full deployment is needed
[11:25:18 AM] Capturing initial file state of the MAF application.
[11:25:19 AM] Verifying this is a MAF application...
[11:25:19 AM] Verifying existence of the .adf source directory of the MAF application...
[11:25:19 AM] Verifying Application Controller project exists...
[11:25:19 AM] Verifying application dependencies...
[11:25:19 AM] Deployment cancelled.
[11:25:19 AM] Deployment cancelled.
[11:25:19 AM] ----  Deployment incomplete  ----.
[11:25:19 AM] Failed deployment to iOS simulator. Encountered exception: An error occurred while trying to determine if Xcode is installed..
[11:25:19 AM] An error occurred while trying to determine if Xcode is installed.
[11:25:19 AM] Cannot run program "/Users/msm/Oracle/Middleware/Oracle_Home/jdeveloper/jdev/extensions/oracle.maf/iOS/maf-helper": error=13, Permission denied
[11:25:19 AM] error=13, Permission denied

I tried creating the “New Deployment Profile” and facing problem in 3rd step as follows:

  1. Going to JDeveloper>Application>Deploy>New Deployment Profile…
  2. Choosing “MAF for iOS” and click ok.
  3. Selecting Minimum iOS version and Simulator and clicking ok.

The problem is that I am not able to get the list of Simulators to select, having Xcode installed. Please see this screenshot of what options appears in the Deployment Profile dialog box.

I have installed the MAF extension correctly for JDeveloper and also I am using following softwares:
OS X El Capitan version 10.11.5
Oracle Jdeveloper version 12.2.1.0.0
Xcode version 7.3.1

Please help me deploy the application to iOS simulator.
Thanks.


Solution

  • Hey had a problem with Xcode, it seems it wasn't active or so. So I ran a command "sudo xcode-select -s /Applications/Xcode.app" in the terminal and the simulators list got fetched and was able to set deployment profile using iPhone9.3 and the application got deployed. Thanks Anand Raj for your help.