I've been developing my MacOS app on OS 10.14~10.15.7 and Xcode 11.3.1.
Recently I upgrade my OS version to 11.0.1 but keep Xcode version the same.
Run my app I will encounter following exception:
EXC_BAD_ACCESS (code=2, address=0x7fff2384c4e1)
When I type cmd in lldb:
image lookup -va 0x7fff2384c4e1
It shows following information:
Summary: AppKit`_OBJC_$_INSTANCE_METHODS_NSSeparatorToolbarItemView + 49
Module: file = "/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit", arch = "x86_64"
Symbol: id = {0x0000f500}, range = [0x00007fff2384c4b0-0x00007fff2384c5c0), mangled="_OBJC_$_INSTANCE_METHODS_NSSeparatorToolbarItemView"
And I found if I go to "Edit Scheme" -> "Run" tab -> "info" tab -> uncheck "Debug executable"
AP will launch normally.
Does someone know how to resolve this issue?
Many thanks.
Have you tried to build your app with newer Xcode? There are many way to accomplish this but all tricky. The better way, as I do, is to have a virtualized Mac and try.
I've just updated to macOS Catalina and on xCode to test an app I was building for iOS on how it'll look like on mac I checked Mac under Development Info.
When I run it on an iOS device it runs successfully. But when I run it using My Mac as target it gives an error:
Undefined symbol: _OBJC_CLASS_$_SFAuthenticationSession
Here is a full picture of the error:
I am getting an Error on the top of my interface builder in Xcode 10.3 and while clicking on report bug and checking the log.txt file I found out that fails to open simulator. However I am not starting any simulator.
Here is the Error found in Log.txt
Encountered an error communicating with IBAgent-iOS. (Failure reason: IBAgent-iOS failed to launch): Failed to boot device iPhone Xs (0B8270CC-2BFB-4BB6-90A5-6BA61468A1AD, iOS 12.4, Shutdown) for context <IBCocoaTouchToolLaunchContext: 0x7fe80e754ad0> toolName = IBAgent-iOS, description = <IBCocoaTouchPlatformToolDescription: 0x7fe80e2a0290> System content for IBCocoaTouchFramework-ElevenAndLater <IBSimulatorDeviceTypeDescription: 0x7fe80fab2f90> deviceType=com.apple.CoreSimulator.SimDeviceType.iPhone-XS (Failure reason: Failed to boot iPhone Xs (0B8270CC-2BFB-4BB6-90A5-6BA61468A1AD, iOS 12.4, Shutdown)): Unable to boot the Simulator. (Failure reason: launchd failed to respond.)
Error Domain=com.apple.InterfaceBuilder Code=-1 "Encountered an error communicating with IBAgent-iOS." UserInfo={NSLocalizedFailureReason=IBAgent-iOS failed to launch, NSUnderlyingError=0x7fe80ae44440 {Error Domain=NSPOSIXErrorDomain Code=60 "Operation timed out" UserInfo={NSLocalizedFailureReason=Failed to boot iPhone Xs (0B8270CC-2BFB-4BB6-90A5-6BA61468A1AD, iOS 12.4, Shutdown), NSLocalizedDescription=Failed to boot device iPhone Xs (0B8270CC-2BFB-4BB6-90A5-6BA61468A1AD, iOS 12.4, Shutdown) for context <IBCocoaTouchToolLaunchContext: 0x7fe80e754ad0> toolName = IBAgent-iOS, description = <IBCocoaTouchPlatformToolDescription: 0x7fe80e2a0290> System content for IBCocoaTouchFramework-ElevenAndLater <IBSimulatorDeviceTypeDescription: 0x7fe80fab2f90> deviceType=com.apple.CoreSimulator.SimDeviceType.iPhone-XS, NSUnderlyingError=0x7fe80bd300f0 {Error Domain=NSPOSIXErrorDomain Code=60 "Operation timed out" UserInfo={NSLocalizedFailureReason=launchd failed to respond., NSLocalizedDescription=Unable to boot the Simulator.}}}}, NSLocalizedRecoverySuggestion=Please check Console.app for crash reports for "IBAgent-iOS" for further information., NSLocalizedDescription=Encountered an error communicating with IBAgent-iOS.}
If anyone still looking for an answer to this after Xcode 13 update, I have tried everything they mentioned on the internet and nothing worked except one. The only thing that worked is the complete re-installation of Xcode. Completely uninstall/delete Xcode first and restart the mac and reinstall Xcode then all should be good.
Delete Xcode from Applications Folder and Empty Trash.
Go to ~/Library/Developer and Delete CoreSimulator, Xcode, XCTestDevices Folder. Empty trash
Goto ~/Library/Caches and delete everything starting with com.apple.dt.Xcode, Empty trash
Then Restart your Mac and reinstall Xcode. I used my downloaded Xcode app, AppStore installation will also work, I guess.
Now it all working.
Before that, I have changed the storyboard file using Open as Source Code mode (coz I couldn't open it in Interface Builder - Xcode just hang)
I changed the storyboard design device to iPhone 13 instead of the older device version it had.
<device id="retina6_7" orientation="portrait" appearance="light"/>
I change the existing line with this line. It kinda solve another issue of Xcode hanging, when trying to open with Interface Builder, but it didn't solve Encountered an error communicating with IBAgent-iOS issue when trying to install the app. That issue only got solved when I completely reinstalled the Xcode.
I have managed to fix it just by changing preview device on interface builder
In my case it helped:
clean project
remove derived data
close Xcode
restart Mac
I used DevCleaner XC helper app:
https://apps.apple.com/us/app/devcleaner-for-xcode/id1388020431?mt=12
removed everything, and after that restarted mac. No XC reinstall needed.
This problem caused because, I deleted all directories under "Library/Developer/Xcode" for a purpose. But, I realised I also deleted wrong directories in same time. Then I put back directories from the Bin. It is solved for me.
If you have or have had multiple versions of Xcode open, you may need to reboot or completely re-install the CoreSimulatorService, an evil, globally installed background service that somehow remains online and available to many versions of Xcode despite it being compatible with only one version.
See more here: https://stackoverflow.com/a/72946533/731285
Other symptoms of this issue: Simulators not showing up in the Window > Devices and Simulators listing and simctl throwing errors and being unable to find base iOS SDKs similar to the following:
$ xcrun simctl list
...
-- Unavailable: com.apple.CoreSimulator.SimRuntime.iOS-15-5 --
iPhone 8 (55A90310-8202-4A0D-968B-00F440D42210) (Shutdown) (unavailable, runtime profile not found)
See also:
Command CompileAssetCatalog failed with a nonzero exit code
Xcode device Unavailable, runtime profile not found
In my case, I just had to set team in
Project > Targets > Signing & Capabilities > Team > Personal Team
i am trying to publish an ios application using adobe flash cc on mac and flash professional cs6 on windows.
when i publish my application using cs6 ( air sdk 3.7, air sdk 3.6 ) on windows ipa is created and installed only on jail-break phone and when i try to install jailed phone its simply shows application failed to install.
when i start to publish with flash professional CC on mac (Size of Ram is 768MB) ipa is not created but the following errors are shown:
"Restore windows
The application “java” unexpectedly quit while trying to restore its windows.
Do you want to try to restore its windows again?"
and
"ADT quit unexpectedly while using the libjvm.dylib plug-in.
Click Reopen to open the application again.
Click Report to see more detailed information and send a report to Apple."
and at last a error report
if anyone face this issue or have sorted out this please let me know.
thanks
Virender
Error report:
Process: java [1175]
Path: /usr/bin/java
Identifier: net.java.openjdk.cmd
Version: 1.0 (1.0)
Code Type: X86-64 (Native)
Parent Process: sh [1174]
PlugIn Path: /Applications/Adobe Flash CC/Adobe Flash CC.app/Contents/jre/jre1.7.0_10.jre/Contents/Home/lib/server/libjvm.d ylib
PlugIn Identifier: libjvm.dylib
PlugIn Version: ??? (???)
Date/Time: 2013-07-11 22:10:34.716 -0700
OS Version: Mac OS X 10.7.4 (11E53)
Report Version: 9
Interval Since Last Report: 37146 sec
Crashes Since Last Report: 41
Per-App Interval Since Last Report: 6085 sec
Per-App Crashes Since Last Report: 41
Anonymous UUID: CDBA110A-A463-40BB-9E1F-2321B9E94AFE
Crashed Thread: 18 Java: Java2D Queue Flusher
Exception Type: EXC_BAD_ACCESS (SIGABRT)
Exception Codes: KERN_INVALID_ADDRESS at 0x00000000000003b0
VM Regions Near 0x3b0:
For a quick solution you can try using IfunBox with install IPA on a non jailbreack phone. By the way i had the same probrem, I was unable to instal my IPA on a non Jailbreack phone but wen i upload to Apple every thing goes fine! One of the reasons of the intalation fail could be that u didnt mach the license id and software name wen um create the IPA.
I've download Xcode 4.2 from official site. And when installation starts - it shows an error:
Not very informative.. What is the problem? where to see logs or something?
PS.I have: Mac OS 10.6.8, Xcode 4.0, ~10 GB free space. And I want just to test my app on ios5.
UPDATED:
Installer[51580]: Failed install preflight: Error Domain=PKInstallErrorDomain Code=102 UserInfo=0x119de62e0 "The package “OpenGLApps.pkg” is untrusted." Underlying Error=(Error Domain=NSOSStatusErrorDomain Code=-2147409654 UserInfo=0x119df06b0 "The operation couldn’t be completed. CSSMERR_TP_CERT_EXPIRED")
You can try changing your system date to a date before 26 March 2012. For details, check https://apple.stackexchange.com/questions/45841/xcode-4-2-snow-leopard-doesnt-install