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
Related
I added the script that I found in another post but no luck. I cleaned the build folder hundred times but nothing is working.
Actually in my case the target has been set correctly. All I needed to do was to turn off the simulator and let it get started by the build again.
Have you checked the "Target Membership" in the right-side pane?
Go to "images.xcassets" under your project
Click "AppIcon" or any image asset you have for your project
Show the Inspector on the right
See if "Target Membership" is checked correctly for your app.
Select Target from Xcode then navigate to General Tab and under "App Icon and Launch Images" section select "App Icons Source" -> AppIcon
It was greyed out in the Target membership. I fixed that and it worked.
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.
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
I have one Xcode project (in Xcode 6.1) with a 4 targets for 4 different apps that share a lot of the same source code.
I'm trying to have each one of them show a different app icon.
Going into Project > General > [select target] > App Icons and Launch Images, I see this:
But clicking on each AppIcon, I get to the exact same app icons - not the ones that I would like for each project.
Is this just a bug in Xcode? How can I use different app icons for different targets?
Click on your already existing xcassets File, where you have defined the Appicons for your first target and add a new Appicon.:
You can give the new Appicon a meaningfull name (In my case Appicon-Debug):
Go to your targets and select the new target:
choose the new AppIcon under General -> "App Icons and Launch Images" -> "App Icons Source":
Clean the project and rebuild it.
Go to your app's Assets.xcassets and create a new iOS App Icon by clicking on the + button in the bottom left corner of target's section
Name it AppIcon-Test or Debug or whatever name suits you.
Go to xcassets folder and in the utilities panel allow target membership to both in the File Inspector View. Make sure the all target membership's are enabled for both AppIcon sets.
Select the target for which you want to change icon in the project settings. In "General" Scroll down to App Icons and Launch Images. Select your appicon set for the respective target in App Icons source
Happy coding :)
I had a similar issue when using multiple targets. Trying to change which asset set is used just didn't work, it would always just auto select the first one in the list. The way I solved this was to rename the AppIcon in each asset set e.g. AppIconMobile and AppIconTablet.
CLick on the Arrow at right most, which will take you to Xc-assets screen, where you can set images.
Similarly click on other target and set images. If you open your project in finder window, you can notice ProjectName.xcassets where you can see different app icons set. you can copy directly to this folder aswell
I think you just need to create Assets.xcassets for each target
Then create an AppIcon in Asset, no need to give it a different name in each asset
Select the AppIcon on the general section of each target
On top of every other suggestions, you also need to clear Build Folder (top menu Project -> Clean Build Folder), close Xcode, remove app from device / simulator, close simulator, open Xcode and run it again. Otherwise, Xcode will keep cache of your old App Icon.
Is there any tool available to find the difference between two versions of same xcode project?. So that I can easily get an overview of the changed/newly-added/deleted files.
Thanks,
durai.
The Xcode tools include the FileMerge.app application that does exactly what you're looking for.
It's at <Developer Tools>/Applications/Utilities/FileMerge.app.
You can compare two Xcode project using FileMerge tool available with Xcode.
Below are steps for comparison in Xcode 6.1
Right click on Xcode icon -> Select 'Open Developer Tool' -> Select 'FileMerge' option
This will open window as show below :
Select two Xcode project which is to be compared by clicking Left and Right button
Click on 'Compare' button. This will create list of file that are added, removed or altered
by comparing two Xcode project.
Note : While selecting file for Left/Right go to folder level not Xcode file or workspace
You can check changes in Left/Right, identical between Left/Right or Added/Deleted by selecting feature present in extreme right side of window (if using Xcode 8.2.1)