I'm developing a background only OS X app in Xcode. I've archived the app and placed .app file in /Library/Input Methods/. It's running fine. Yesterday, every time I modified something & then run it in Xcode, newly built app would run instead of the one I placed in /Library/Input Methods/ and I could see the Console output of the newly built app.
But suddenly today this doesn't happen. The one in /Library/Input Methods/ runs and nothing is shown in console. Also when I run the app in Xcode, I can see two instances of the app in Activity Monitor (one from /Library/Input Methods/ and other one from Xcode).
I'm using Xcode 5.1 and OS X 10.9
I tried quiting-restarting Xcode, restarting Mac, cleaning project, deleting data in Derived Data folder etc. But nothing worked. Any help would be highly appreciated. Thanks in advance.
Figured it out. I had to run the app from Xcode BEFORE it gets started from the system i.e. by changing input method. So the app process of Xcode build needs to be run first.
Related
I have recently upgraded both Xcode (to 11.5) and Mac OS to Catalina. Xcode has been working fine for a few days. I clicked on a JSON file in my project and Xcode hung (with SBBOD). I forced quit and rebooted but now Xcode will not load - it starts, but just shows SBBOD again. On startup, it tries to load my last project, I have tried launching from Finder by clicking on a PlayGround project but same issue!
Any suggestions for how I recover this situation?
While the cause is not resolved, I left Xcode running overnight and it is now working. This issue seems to be with displaying a large JSON file (about 1MB). Xcode is taking a few hours before it becomes responsive. I just left it to run.
I have a macOS app with a ViewController that renames and resizes the app window, has several buttons, and a WKWebView that loads a default webpage on launch.
The project itself is an .xcworkspace file, since it includes the CocoaPod SwiftSoup for HTML scraping.
The app runs great in the simulator. When it launches, it looks like this:
I want to run this app on my Mac outside of Xcode. I am not planning on releasing it to the App Store, it is just for my personal use.
I archive the project with Products > Archive, then select "Distribute App", then "Copy App" to create a directory with the archived app. This all works great.
When I launch the app, I just get an incorrectly sized blank title-less window, without the buttons or WKWebView from my Storyboard:
The app isn't hanging. I can open the "About" menu item, etc., so I know the app is running. it just doesn't seem to be using my Storyboard to draw the UI.
What would cause an archived app to differ from the app running in the simulator?
The funny thing is that I WAS able to archive this same app back in November under High Sierra, so I'm guessing the issue is either Cocoa Pods and/or Mojave related.
My debugging leads me to suspect either CocoaPods or Mojave related
My debug:
1) While debugging, I restored a version of the project from November. When I archive that restored project, I get the same blank non running app.
2) I AM able to archive another brand new project that doesn't use Cocoa Pods, so my guess is that this is either CocoaPods and/or Mojave related issue...
Any suggestions on how to proceed debugging, or help resolving this would be greatly appreciated!
I am using Xcode 10.2.1 under Mojave 10.14.5.
This problem is caused by WKWebView.
So, you need remove WKWebView from IB and then create it with code and add it to the view.
REFER:
https://forums.developer.apple.com/thread/116047
http://www.openradar.me/23699297
While running my app on iPhone, I needed to view the database contents. So I selected Devices in Xcode and chose my device. Thereafter, i selected my app and clicked on the Settings button which shows 3 options: Show container, Download container and Remove container. On clicking the Download container option, I was asked where I want to store the container. After selecting the location, I am getting the following error: An error occured while attempting to download the container from application "MyApp".....
On selecting Show container option, a list opens up but there is no file inside it.
The same problem occurs with other apps too that I run using Xcode.
Any ideas as to why this happens and how to fix it?
I just rebooted my iPhone. That seems to fix it! Really weird, but works.
I have been having the issue every now and then especially after the phone has been connected to Mac and Xcode for about an hour.
Sometimes, just rebooting the phone isn't good enough, you'll also have to quit Xcode and start again after rebooting the phone!
I also had this problem yesterday, and the solution was a mismatched version of iOS 10 and Xcode 7. After I did the App Store upgrade to Xcode 8, I was able to download successfully.
In my case the issue was due to the fact that the version installed was a release version.
After installing the "Debug" version, the download worked fine.
Using Xcode Version 7.2 on my OS X 10.10.5.
I have a Cocoa application written in Objective-C that utilizes Google's CorePlot library. When I run the app (Product --> Run), it runs perfectly fine.
However, when I archive the project (Product --> Archive --> Export --> Export as a Mac Application), and then run the created '.app' by double-clicking it, the app crashes right away without even loading.
There's no reason for it to crash; the archive was done successfully, and the first window/ViewController don't try to access saved variables that would not be present on a first run.
Basically, double-clicking the app doesn't even open the app icon in the dock or show a window being created - it's like the app won't even open.
This same crash/no loading happens when I try to open/install the app using any of the options under "Export"
It turns out this issue can occur if your app has trouble importing or finding certain classes/files.
In my case, for some reason, when I opened my project and ran the app, it would find CorePlot's CorePlot.h file. However, when I archived the app and exported it to be used on other people's computers, it would not archive and export 'CorePlot.h'.
As a result, my app would crash right away as it could not find 'CorePlot.h'.
I had developed the application in 4.2.3 that was running fine on simulator after that i migrated my Xcode to 4.5.2.
When i am running app on iphone simulator 6 its running fine,while running on device an error occur "Could not launch application No such file or directory app.app/application_name".
Meanwhile i created a new project and run directly on device its running fine.
its mean is that i have to setting old file?
can any body help me?
Thanks alot
Try these steps:
Disconnect your device.
Delete the app from your device.
Quit xcode (Don't just simply close the window, quit it)
Delete derived data folder (~/Library/Developer/Xcode/DerivedData/-
gbrvhlvwmpiobxdujegtghggrffp - or something like that)
Now start Xcode, connect device and run the project. It should work fine.
There it is.