Is it possible to have Xcode automatically launch an app on my iOS device from Xcode 4.6 without attaching its debugger to the app? I'm working on an automated build system, so manually launching the app is not an option.
I've found Run Without Building under the Product -> Perform Action menu, but that still attaches the debugger. I can edit the scheme to make Xcode wait until the app is launched manually before attaching the debugger, but that's basically the opposite of what I want.
If you want to launch an app from Xcode without launching the debugger, I would uncheck the “Debug executable” option in the Xcode scheme:
If you want to launch an app manually, you can:
Select your device in the "scheme" dropdown;
Build the app (don't run);
Open the organizer and go to the "devices" tab;
Drag your app from the "Products" folder in the main Xcode project navigator to the device in the organizer window and it will be installed; and
You can then run the app manually from the device at that point.
This process can be useful when diagnosing startup performance and you want to run the app on the device completely separate from Xcode (and the debugger, if you have a debug build).
xcode 6.3.1
unselect the debug execute, then you could run without debugging.
Just Build and run and once it launches press stop and open the app manually. It will then be the app you built but not connected.
Related
I've been developing a news app with Flutter and when I build and run it through Android Studio it launches fine, but when I try to launch the app by clicking on it on the home screen, it says "in iOS 14+, debug mode flutter apps can only be launched from Flutter tooling,IDEs ....."(Screenshot attatched). Can someone tell me as to how to get around this?
Apparently, this is a known issue of Flutter on iOS 14 for apps in debug mode, see this article on the Flutter website, and this GitHub issue. So for the time being, I believe your main workarounds are the following:
Always run the app from the host PC (using flutter run, IDE debug, etc.)
Build a release version of your app (instead of debug) and use that on your device, e.g. use flutter run --release
Use a device with iOS 13 or older
Use a simulator
If you want to use the app without being connected via usb
Open the ios folder on Xcode
Make sure your device is connected
Select Product from the menu bar -> Scheme -> Edit Scheme
Or simply use the shortcut: command + >
Step 3
Change the build configure to Release
Run the app from Xcode
Disconnect your device and you're good to go!
I'm using {N}5.1.0, and I'm trying to debug some memory leaks that I have in the application.
I've followed the instructions here. The problem is that when I press on 'profile', the instrument pane opens, the application is deployed to the device (a simulator) but it's not started. And if I click on the icon of the app on the simulator to manually start it, it shows the splashscreen and then silently stops.
I'm using xcode 10.1
I've already tried to wipe out all simulator data, restart simulator and xcode with no results.
Am I missing something?
I had to go to Product>Scheme>Edit Scheme then select Profile and switch Build Configuration to Debug
I'm sure it used to be possible to do this but I don't seem to be able to run the Xcode project generated by Titanium in Xcode. The app installs in the simulator and starts but immediately stops with the following runtime error:
Could not find the file app.js
I'm running Xcode 7.2.1 with appc cli 5.1.0 / ti CLI 5.0.5. The app is built with 5.1.2.GA.
Running the app in Xcode would provided access to instruments and perhaps better insight in native level crashes etc.
What you are trying to do isn't officially supported, but it is possible.
First, do a clean build of your Titanium app from Appcelerator Studio (or the command line). Then open the Xcode project from the build/iphone directory.
Next, open Xcode's preferences and go to the "Locations" tab. Click the "Advanced" button under the "Derived Data" field. Set the build location to "Custom" and "Relative to Workspace". Lastly set the "Products" location to build/Products and the "Intermediates" location to build/Intermediates. Click "Done" and close the preferences dialog. You only need to do this once.
You can now build your app from Xcode, but there are a few gotchas:
You cannot clean the Xcode project. You'll nuke all your app resources.
You can only build for the same target as you built the Titanium app for in Appcelerator Studio. In other words, you will probably have issues building the Titanium app for iOS simulator, then try building it for device from Xcode. Don't do this.
Again, this is currently not supported. I'm working on greatly improving this developer experience, but it's going to take a while. In the meantime, I hope the above helps.
I recently purchased an Apple developer's license so I can make apps using Swift
However, whenever I build my app, it takes about five minutes to load, and opens up the iOS simulator which is extremely slow.
How can I build just the app itself?
Thanks.
I had the same problem, and the solution is quite simple.
Don't close the iOS simulator, leave it open.
Just stop the app from running, and it will close the app within the simulator itself.
CommandR to run the app, Command. to close.
You did a "Build & Run" with an iOS Simulator device selected as a run destination.
Select a real iOS device in the run destinations list and B&R to it instead (or just Build rather than B&R).
Just press cmd+B to build without running simula.
I'm trying to push an app of mine out to TestFlight so my QA group can get their hands on it but am having a problem that I'm encountering. I recently added a run/build script to the app's Xcode project that conditionally enables/disables the Settings.bundle resource based on the build configuration (DEBUG=enabled, RELEASE=disabled) -- the resource is used only as an internal debug utility so I don't want it enabled when I decide to build it in release mode or push it out to the App Store.
I tested out that build script modification I made by running my app on a physical iPad device right from Xcode and I got the results I expected to get -- when I ran the project from Xcode in Debug on my iPad, I saw the app settings available and when I ran the project from Xcode in Release on my iPad, the settings menu was not available for the app. This all goes down the crapper when I decide to ARCHIVE my app in Debug (so that I can push it out to TestFlight). Long story short, the debug archive hides my app settings menu when it should NOT hide it. Anybody know what's going on here?