Simulate Location with Xcode 11 - ios

Well, I am trying to activate Location in my iOS Simulator, but I got unaccessible greyed options. Like this:
I read about Products > Schemes > Run > Options... But there's no options for Location in there. Like this other image:
Can somebody help me? How can I do this in Xcode 11? Thanks in advance!

On Xcode 11 and later, you need to go to the Simulator. Open "Features" in the menu, then select "Location".

You just need to go to the simulator open Debug menu -> Location and all set.

If you want to set/fake location for simulate with Xcode 11 or later.
Step 1: Run your project with any simulator model.
Step 2: On Dock bar, select to this simulator.
Step 3: On Navigation bar. select "Features -> Location -> Custom Location..."
Step 4: in "Custom Location" table, you insert Lat-Lng to this table.

Xcode 13
You can simulate location in either Xcode or Simulator. For a custom location (with custom coordinates), however, you must simulate location in Simulator, not in Xcode because Xcode does not offer this feature. And to do that you must disable location simulation in Xcode (because it will override Simulator if enabled) and enable it exclusively in Simulator.
To do that, in Xcode, go to "Product", "Scheme", "Edit Scheme" and set "Default Location" to none and uncheck "Allow Location Simulation". Then in Simulator, go to "Features", "Location", "Custom Location" and enter in coordinates.

Related

Time Profiler In Xcode Missing Record Settings, Display Settings

Im using Instruments 8.3.2 and the Record Settings and Display Settings tab are missing in the inspector window. How do I get those tabs back? Please see the attached screenshot.
The normal inspector window looks like this (See arrow 5):
The majority of these settings have moved to the bottom of the Instruments window. Tap on "Call Tree" to see a modal with the missing settings:
No With Xcode 9.3 & Instruments 9.3
The "Recording Options" moved again.
Now it is in the app menu at File > Recording Options….
Or you can use shortcut: CmdOptr
Or long press the Record button, it will appear options contains Recording options
You can see the menu item in the picture below:

How to enable multitasking on iOS with Ionic / Cordova?

I've been trying to enable multitasking on my Ionic / Cordova app on iOS without success.
I've followed the steps in [CB-9161] Support iPad multitasking in iOS 9:
The three rules are:
Build your apps with the iOS 9 SDK
Support all orientations
Use Launch Storyboards
Fix for (1) is:
Use Xcode 7 (Cordova always uses the current SDK)
Fix for (2) is:
Click your Project icon in the Project Navigator
Click on your Target
Select the "General" tab
Go to the "Deployment Info" section
Select the "iPad" button segment
For "Device Orientation", select all four checkboxes (Portrait, Upside Down, Landscape Left, Landscape Right)
Fix for (3) is:
Add a new File: Launch Screen --> "Launch Screen.storyboard"
Click your Project icon in the Project Navigator
Click on your Target
Select the "General" tab
Go to the "App Icons and Launch Images" section
Select "Launch Screen.storyboard" from the "Launch Screen File" dropdown
I can see the new launch screen appearing before my app opens, but then I still can't split the view.
For your information, I'm building on a Mac with Xcode 8.2.1.
All Device Orientation boxes are ticked, and the Requires full screen is blank.
Any idea or direction to give me?
I just found the problem: I was using the cordova-plugin-ipad-multitasking plugin to solve this issue. It turns out that this plugin was preventing multitasking (by forcing the "Requires Full Screen" option I believe). Removing the plugin solved the problem.

XCode 7.3 Not showing "general" tab in options.

I'm trying to access the "general" tab of the Xcode options for a target I'm trying to build but there seems to be none.
Heres an image of my settings tab with the target selected: http://imgur.com/ljgW9j6
Try this.General option
Click the left top corner icon (Hide project and targets list button) that appears in the image and then a list will show you your project, then click your project and the general option now appear.enter image description here
It looks like the project was not created correctly for iOS. You need to do File->New->Project. Then, go to iOS category and choose your project type (usually single view application). Then input your project name, preferred language, organization, etc. and create the project. Now, when you click on the target, you will see the general tab.
that message is talking about your IOS device general tab so you have to go to your (iphone or ipad) setting -> general -> (in IOS 11)Profile & Device Management -> Then select your apple Id which is signed in xcode
Note: your ios device should connected to internet

View 3,5" Display on all devices with Xcode 6

I Running my app on Xcode6, i have a problem with the screen view with 4", 4,7", 5" (iPhone5, iPhone6 and 6+). it seems to display the screen of 3,5" (iPhone4)
println(UIScreen.mainScreen().bounds)
output:
display (0.0,0.0,320.0,480.0)
And it display like that on the phone :
How can i solve ?
Just add Launch Images for all devices and remove the Launch Screen File in project settings - it will fix issue.
In your project navigator, under Targets click on General tab.
Inside that there will be Launch Images Source click on Use casset catalog. It will prompt for migrate & cancel. Click on migrate it will solve your issue.

can't run iOS project in simulator nor device

I made some changes in my xcode project, which somehow, causes me to not be able to run the app in the simulator nor device. The only option that I can see now is My Mac 64 bit. How do I fix this? The target is correct.
Try this:
Go to Edit scheme (Drop down near the stop button), then select Excecutable as "yourapp.app".
If you open the project in XCode (4.4.1), on the left top click the folder icon, then select your project icon to bring up the project settings page. Click on the "Summary" tab, then you should see "Devices" where you can select the device you want to target.
If that doesn't work (you don't see "iOS Application Target") you may need to go into "Build Settings" and select a different "Base SDK" -- I usually select "Latest iOS". You may have selected a Mac OS X SDK. Also check "Supported Platforms" to select "iOS".
Another Way which did it for me ...
go to manage Schemes and click Autocreate schemes now on the upper left side ..
hope it helps

Resources