Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Error : Deployment failed due to one or more errors returned by 'osascript'

VerysJul 17 2015 — edited Aug 13 2015

Hello, I really need some help here... I´ve tried everything!!

I´m using Yosemite 10.10.4, xCode 6.4 and iOS Simulator 8.4.

I´m trying to deploy my ADF Mobile app to the simulator, but I´m getting the below error and I can't find the solution. I´ve tried almost everything that people suggest on internet: combine different xCode versions, I copied the .ipa from /Library/Application\ Support/iPhone\ Simulator/8.4/Applications/ and when I deploy it with the command line xcrun simctl install booted SkinningDemo.app I get the error ¨The application controller folder 'ApplicationController' does not exist ¨when I run the app deployed in the simulator.

Here is the log of the jDeveloper (11.1.2.4): Im trying to deploy a Sample given by Oracle, so that I know that there is no problem with the ADF Mobile code...

[09:31:21 AM] ----  Deployment started.  ----

[09:31:21 AM] Target platform is  (iOS).

[09:31:21 AM] Beginning deployment of ADF Mobile application 'SkinningDemo' to iOS using profile 'iOS2_DEBUG'.

[09:31:21 AM] Command-line executed: [/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild, -version]

[09:31:21 AM] Command-line execution succeeded.

[09:31:21 AM] Running dependency analysis...

[09:31:21 AM] Building...

[09:31:21 AM] Deploying 3 profiles...

[09:31:21 AM] Wrote Archive Module to /Users/user1/Downloads/PublicSamples/SkinningDemo/ApplicationController/deploy/ApplicationController_MobileFeatureArchive1.jar

[09:31:21 AM] WARNING: No Resource Catalog enabled ADF components found to package

[09:31:21 AM] Wrote Archive Module to /Users/user1/Downloads/PublicSamples/SkinningDemo/ViewController/deploy/ViewController_MobileFeatureArchive1.jar

[09:31:21 AM] Verifying existence of the .adf source directory of the ADF Mobile application...

[09:31:21 AM] Verifying Application Controller project exists...

[09:31:21 AM] Verifying application dependencies...

[09:31:21 AM] Verifying project dependencies...

[09:31:21 AM] Validating application XML files...

[09:31:21 AM] Validating XML files in project ApplicationController...

[09:31:21 AM] Validating XML files in project ViewController...

[09:31:22 AM] Copying common javascript files...

[09:31:23 AM] Copying FARs to the ADF Mobile Framework application...

[09:31:23 AM] Extracting Feature Archive file, "ApplicationController_MobileFeatureArchive1.jar" to deployment folder, "ApplicationController".

[09:31:23 AM] Extracting Feature Archive file, "ViewController_MobileFeatureArchive1.jar" to deployment folder, "ViewController_MobileFeatureArchive1".

[09:31:23 AM] Deploying skinning files...

[09:31:23 AM] Copying the CVM SDK files built for the x86 processor...

[09:31:24 AM] Copying the CVM JDK files built for the x86 processor...

[09:31:24 AM] Command-line executed: [cp, -R, -p, /Users/admin/Oracle/jdeveloper/jdev/extensions/oracle.adf.mobile/iOS/jvmti/x86/, /Users/user1/Downloads/PublicSamples/SkinningDemo/deploy/iOS2_DEBUG/temporary_xcode_project/lib]

[09:31:24 AM] Command-line execution succeeded.

[09:31:24 AM] Command-line executed: [cp, -R, -p, /Users/admin/Oracle/jdeveloper/jdev/extensions/oracle.adf.mobile/iOS/jvmti/jar/, /Users/user1/Downloads/PublicSamples/SkinningDemo/deploy/iOS2_DEBUG/temporary_xcode_project/lib]

[09:31:24 AM] Command-line execution succeeded.

[09:31:24 AM] Copying security related files to the ADF Mobile Framework application...

[09:31:24 AM] Command-line executed from path: /Users/user1/Downloads/PublicSamples/SkinningDemo/deploy/iOS2_DEBUG/temporary_xcode_project/

[09:31:24 AM] Command-line executed:  /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild clean install -configuration Debug -sdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.4.sdk DSTROOT=/Users/user1/Downloads/PublicSamples/SkinningDemo/deploy/iOS2_DEBUG/Destination_Root/ IPHONEOS_DEPLOYMENT_TARGET=6.0 TARGETED_DEVICE_FAMILY=1,2 PRODUCT_NAME=SkinningDemo ADD_SETTINGS_BUNDLE=NO

[09:31:30 AM] Frameworks/OracleADFMobile.sdk/Headers/ADFShellDelegator.h:42:1: warning: no 'assign', 'retain', or 'copy' attribute is specified - 'assign' is assumed [-Wobjc-property-no-attribute]

[09:31:30 AM] Frameworks/OracleADFMobile.sdk/Headers/ADFShellDelegator.h:42:1: warning: default property attribute 'assign' not appropriate for non-GC object [-Wobjc-property-no-attribute]

[09:31:30 AM] ld: warning: PIE disabled. Absolute addressing (perhaps -mdynamic-no-pic) not allowed in code signed PIE, but used in args_loop from Frameworks/OracleCVM.sdk/libcvm_adf_x86_debug.a(invokeNative_i386.o). To fix this warning, don't compile with -mdynamic-no-pic or link with -Wl,-no_pie

[09:31:30 AM] Command-line execution succeeded.

[09:31:30 AM] Deploying ADF Mobile Framework application to iOS simulator.

[09:31:30 AM] Command-line executed: [osascript, -e, tell application "iPhone Simulator" to quit]

[09:31:30 AM] Command-line execution succeeded.

[09:31:32 AM] Command-line executed: [cp, -R, -p, /Users/user1/Downloads/PublicSamples/SkinningDemo/deploy/iOS2_DEBUG/Destination_Root/Applications/SkinningDemo.app, /Users/user1/Library/Application Support/iPhone Simulator/8.4/Applications/com.oraclecorp.internal.SkinningDemo]

[09:31:32 AM] Command-line execution succeeded.

[09:31:32 AM] Command-line executed: [ln, -s, -v, /Users/user1/Library/Application Support/iPhone Simulator/8.4/Library/Preferences/.GlobalPreferences.plist, /Users/user1/Library/Application Support/iPhone Simulator/8.4/Applications/com.oraclecorp.internal.SkinningDemo/Library/Preferences/.GlobalPreferences.plist]

[09:31:32 AM] Command-line execution succeeded.

[09:31:32 AM] Command-line executed: [osascript, -e, tell application "iPhone Simulator" to activate]

[09:31:32 AM] Command-line execution failed (Return code: 1)

[09:31:32 AM] Deployment cancelled.

[09:31:32 AM] ----  Deployment incomplete  ----.

[09:31:32 AM] Failed deploying to the iOS simulator.

[09:31:32 AM] Deployment failed due to one or more errors returned by 'osascript'.  The following is a summary of the returned error(s):

Command-line execution failed (Return code: 1)

I´d appreciate some help,

thanks in advance!

This post has been answered by Shay Shmeltzer-Oracle on Aug 11 2015
Jump to Answer
Comments
Post Details
Added on Jul 17 2015
7 comments
1,219 views