Cannot launch gluon app on iPad simulator - ios

I created a basic gluon app for iOS and when I try to launch it (right-click on project > Tasks > launch > IPadSimulator) I get the output below. I have a macbook pro running Mac OS X Sierra, Xcode 8.3.3, Netbeans 8.2 with Gluon plugin 2.5.0.
Executing: gradle :launchIPadSimulator
:compileJava UP-TO-DATE
:processResources UP-TO-DATE
:classes UP-TO-DATE
:createDefaultIOSLauncher
:compileIosJava UP-TO-DATE
:processIosResources UP-TO-DATE
:iosClasses UP-TO-DATE
:iosExtractNativeLibs UP-TO-DATE
:launchIPadSimulator
Root pattern javax.annotations.**.* matches no classes
Root pattern javax.inject.**.* matches no classes
warning: no debug symbols in executable (-arch i386)
2017-06-17 13:51:15.618 simlauncher[2058:23258] ERROR: dlopen(/Applications/Xcode.app/Contents/SharedFrameworks/DTDeviceKitBase.framework/DTDeviceKitBase, 10): Library not loaded: #rpath/DVTDeviceFoundation.framework/Versions/A/DVTDeviceFoundation
Referenced from: /Applications/Xcode.app/Contents/SharedFrameworks/DTDeviceKitBase.framework/DTDeviceKitBase
Reason: image not found
BUILD SUCCESSFUL
Total time: 15.489 secs
The build is successful, but the simulator does not start. I am able to launch the simulator and run apps from Xcode however.

I'm able to reproduce the issue, and it has already been reported elsewhere (here or here).
As you can see here, the current version of the jfxmobile plugin (1.3.5) is using on iOS MobiDevelop 2.3.0.
After Apple released iOS 10.3, several issues have been reported: deploying to mobile was failing after installation was complete (verification failed at 90%), and now the issue with the simulator.
MobiDevelop 2.3.1 has been recently released with some fixes.
Using this version I've just verified that the issue with the Simulator is fixed as well. Anyway, I've just created an internal issue to notify this problem.
When the jfxmobile plugin gets updated with the new MobiDevelop version, the issue will be solved.
In the meantime, if you need it, you can fork the repository, modify it and build it yourself.

Related

The version of the CoreSimulator framework installed on this Mac is out-of-date and not supported by this version of Xcode

When running ui tests via cli/fastlane on macOS Big Sur 12.3.0, Xcode 12.5.0
xcodebuild -showBuildSettings -workspace ./MyWorkspace.xcworkspace -scheme MyScheme-UITests
xcodebuild[88311:3500544] DVTErrorPresenter: Unable to load simulator devices.
Domain: DVTCoreSimulatorAdditionsErrorDomain
Code: 3
Failure Reason: The version of the CoreSimulator framework installed on this Mac is out-of-date and not supported by this version of Xcode.
Recovery Suggestion: Please ensure that you have installed all available updates to your Mac's software, and that you are running the most recent version of Xcode supported by macOS.
--
CoreSimulator is out of date. Current version (732.18.6) is older than build version (757.5.0).
Domain: DVTCoreSimulatorAdditionsErrorDomain
Code: 3
--
xcodebuild[88311:3500544] iOSSimulator: [SimServiceContext sharedServiceContextForDeveloperDir:error:] returned nil (Error Domain=DVTCoreSimulatorAdditionsErrorDomain Code=3 "CoreSimulator is out of date.
Current version (732.18.6) is older than build version (757.5.0)."
UserInfo={NSLocalizedDescription=CoreSimulator is out of date. Current version (732.18.6) is older than build version (757.5.0).}). Simulator device support disabled.
What needs to be updated?
It was fixed by tapping "Install components" however I need to figure out what exactly will be installed and if it can be done via cli
As #VictorGazotti said, open Xcode. When it prompts you to install the additional tools, click "Install."
Try the build again.

IPA processing failed in Xcode when trying to create distribution

I am trying to build and create a new IPA file (Enterprise Distribution, not app store) and I am having difficulties. This is an app that I have not touch for about a year, but need to create new binaries due to expiring cert.
Environment: macOS 10.15.7, Xcode 11.5 (Swift 5.2.4)
I first upgraded to XCode 12.4, but had issues with Swift versions and 3rd party libraries that I use, so I went back to Xcode 11.5. I am using Carthage and it seems to run fine and Xcode builds fine, but it errors out after clicking on Distribute App: Product -> Archive -> Distribute -> Enterprise/Development -> “IPA processing failed”:
In the log, I see this about Alamofire, which seems to be the issue:
2021-02-18 18:23:00 +0000 Scanning IPA...
2021-02-18 18:23:00 +0000 Assertion failed: Expected 4 archs in otool output:
/var/folders/6_/t3d3774j3k51w0xwhdswhw880000gn/T/IDEDistributionOptionThinning.~~~UiyRoc/Payload/POS
Pad.app/Frameworks/Alamofire.framework/Alamofire:
Carthage libraries:
github "Alamofire/Alamofire" "5.4.1"
github "AuthorizeNet/sdk-ios" "4.2"
github "Hearst-DD/ObjectMapper" "4.2.0"
github "SwiftyJSON/SwiftyJSON" "4.3.0"
github "TakeScoop/SwiftyRSA" "1.6.0"
github "emaloney/CleanroomLogger" "6.0.2"
github "glock45/swifter" "1.5.0"
github "jzau/fpingx" "0.1.2"
I have "/usr/local/bin/carthage copy-frameworks" in Build Phases (as always). I have also added the Run Script from here: 'IPA processing failed' while distributing build in Xcode Beta, but that did not help.
I only need this to run on iPad Air 2 and later (but it would be good if it also runs on the iPad emulators).
I have never seen this error before and help to get this working would be much appreciated!

Project ERROR: This mkspec requires Xcode 4.3 or later

Scenario:
I have updated to Qt 5.9.6 and I have Xcode 10.0 running on High Sierra.
I have a Qt App that builds for OSX and iOS. And it builds and runs all well with Qt 5.9.4.
Now, I want to update to 5.9.6 for a reason. When I try to build for iOS using Qt 5.9.6, I get the following error
Project ERROR: This mkspec requires Xcode 4.3 or later
Question:
Is there a way to get around this issue?
Note that the OSX build using Qt 5.9.6 just works fine. I have QMAKE_IOS_DEPLOYMENT_TARGET set to 10.0 for iOS case
PS:
I also deleted the .qmake.stash and the .pro.user file from the root directory and restarted QtCreator to try build from a a fresh start. But still get the same issue!
This is bug in Qt, use Qt 5.9.7 where this bug is fixed.

XDK (2807) ios build fails when adding admobpro plugin

when adding admobpro version 2.10.0(cordova-plugin-admobpro & cordova-plugin-admob) or admob plugin by appfeel, my ios build fails.
I h've tried a blank cordova project, and just added in plugin management the plugins one at the time. both fail.
here you can find the error log, provided by intel XDK.
https://gist.github.com/arjankuijpers/d3323f43e50ba0499c86
one of the lines read: The following build commands failed:
ios target: 6 (I have also tried 7)
android build succeed.
thank you
It was an Xcode problem, because XDK used Xcode 6 instead of the new relied on version 7.
This is solved by Intel updating there build system.
a lot of plugins are only working with Xcode 7.
Be aware that ARM versions can make a difference.

Cordova 3.4.1 and calabash-ios

I'm trying to get Calabash to work with an existing Cordova project. I have followed the instructions on calabash-io, both manual and automatic. I can confirm that the manual setup has resulted in the Calabash server running. But running the cucumber tells me that it can't find the .app file, I manually entered the .app, and all it does is loop "xcode-select: Error: unknown command option '-p'." several times and then stops "Unable to start. Make sure you've set APP_BUNDLE_PATH to a build supported by this simulator version
Calabash::Cucumber::Launcher::StartError: Time out waiting for UIAutomation run-loop to Start."
On certain versions of MacOS Lion + Xcode, the xcode-select tool was missing the -p option. This was causing ios-sim gem to raise an exception.
The solution is to upgrade to the most recent version of MacOS and Xcode.

Resources