Build, test, and submit your app using Xcode, Apple's integrated development environment.

Xcode Documentation

Post

Replies

Boosts

Views

Activity

[SOLVED] iOS simulators not showing up
Hello everyone!This problem first appeared when I updated Xcode 6.1 to version 6.2.At that point, the system let me keep 6.1 and install 6.2 additionally, which I decided to go for.While using Xcode 6.2, though, I wasn't able to select any iOS simulators to run my apps on.They still appeared in Window -> Devices, though, and I was still able to open the iOS Simulator App manually and choose from the devices.I just couldn't transfer any more apps.Well, I thought there must have been a bug with the installation. So I deleted both, Xcode 6.1 and 6.2 and installed 6.2 again.But this didn't help. I decided to wait for updates that may fix this problem, but even upgrading to 6.3 didn't help, nor did upgrading to 6.4.Does anyone know how to fix this? Have I somehow messed with system folders when I accepted to keep 6.1 while installing 6.2?Many thanks in advance,Greetings,Shu
15
0
109k
Jul ’15
xcrun simctl documentation
Greetings all,I am having trouble understanding the syntax of the simctl subcommand as there doesn't seem to be any man page for simctl and no documentation on any Apple page or elsewhere.Usage: simctl [--noxpc] [--set <set path>] <subcommand> ... | help [subcommand] Command line utility to control the iOS SimulatorWhat does --noxpc and more importantly, "--set <set path>" do?Please clarify what setting path will do with an example if possible.Cheers,-Patrick
2
0
5.9k
Aug ’15
develop 1 project on 2 macs?
I have two macs at home. One in my bedroom which is my development mac and one in my living room which is an old mac i put to good use. i would like to occasionally sit in my living room and continue my work from there to avoid fatigue sitting at my desk all day. i have enabled source control using local git repo. how can i continue with my xcode project on my second mac which runs the same os x?
19
0
13k
Aug ’15
idmsa.apple.com
Xcode->Prefencrs->accounts>AppID;The certificate for this server is invalid. You might be connecting to a server that is pretending to be “idmsa.apple.com” which could put your confidential information at risk. How can I solve the problem?
19
2
39k
Sep ’15
iOS deep linking with Xcode UI testing
I want to test parts of my app UI in isolation, so avoid having to drill down from the splash screen to the pages in question. My app implements deep linking, but I can't figure out how to configure XCUIApplication in the setUp() to trigger the page transition.I have a method in the app delegate called openURL() which handles this for the production app. It works great, but when I call it (below), nothing happens. If I put a breakpoint in openURL() it never even gets hit. override func setUp() { super.setUp() continueAfterFailure = false XCUIApplication().launch() guard let url = NSURL(string: "fooapp://page/3") else { fatalError("Couldn't create URL") } UIApplication.sharedApplication().openURL(url) }What I really want is to set UIApplicationLaunchOptionsURLKey in launchOptions and just let the app behave as if it received an external URL. I see launchArguments and launchEnvironment are available on XCUIApplication, but then I have to write something special to extract those values out and manually call openURL somewhere in the app delegate. What's the right way to do this?
16
3
11k
Nov ’15
`@testable import` in UI Tests fail to link to app
Hi,Is functional testing supported in UI Test ?I'd like to check the state of my application is correct in a UI Test function (like I have done in my functional tests in the Unit Test target), however adding `@testable import MyApp` causes a link time error:Undefined symbols for architecture x86_64: "type metadata accessor for MyApp.MainViewController", referenced from: MyAppUITests.MyAppUITests.setUp (MyAppUITests.MyAppUITests)() -> () in MyAppUITests.o type metadata accessor for MyApp.MainViewController? in MyAppUITests.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)I noticed that `UIApplication.sharedApplication().windows` also returns an empty array.Has access to the app been removed from UI Test targets?Cheers,Daniel
2
1
3.0k
Jan ’16
++ Operator
Good Afternoon AllI'm having a problem ++Operator in loops after updating the Xcode 7.3. I have tried it in all three ways and non e of them worked after this update. those three ways are;1. x++2. x += 13. x = x + 1None of the above three work in the loops and is giving error everytime but the third of them was working before the update. Can someone assist me please.Many thanks
9
0
1.8k
Apr ’16
Xcode source editor scrolling speed
Heylo all,I've noticed an "issue" of sorts with scrolling through code that's really throwing me off. I don't think it was doing this before, but maybe I just never noticed? I'm not sure.The scrolling speed with the trackpad changes depending on how much scrollable content there is. That is to say, if the window only shows say 40% of the total file, scrolling speed feels like it does everywhere else in the OS. When it covers 80% or 90%, it slows way down so the same amount of physical scrolling translates to moving up or down fewer lines at a time. This change even happens live: if I open a source file in a separate window and shrink the window size, scrolling speeds up; expand it to be the full height of the monitor and it slows down again. (It's literally a difference of 3 lines vs 15 lines)It doesn't do this with a regular mouse wheel; just touch surfaces. I tried restarting, different projects, new projects, playing with the system scroll speed settings in accessibility, turning inertia off...nothing changes it.Has anyone else actively noticed this? Is there a setting to change or a "fix" for it?
4
0
2.5k
Jun ’16
Xcode says “You don't have permission” when trying to run
I found many questions on here asking for the same thing. I have tried all of them but I am still getting this error. I created everything from scratch again and was running well until I deleted the data from "DerivedData" folder and now this permissions alert error came back.I have been trying following things for a week now:I have tried copying this project to a new folder. Didn't work.I changed every permission to my folder structure to be read & write to every user.Product -> Clean.Renaming the app.Compiler for C, C++, Objective-C is "Default compiler Apple LLVM 8.0)Build Settings > Architectures -> to Standard ArchitecturesReplaced Info.plist from a newly created project.Xcode version 8.1.I see that one of the similar questions were tagged as a duplicate. But I am really stuck here for a week. I have tried everything from this answer in the StackOverflow.And a lot of others that I found online.I would really appreciate any help on this. I couldn't finish my project because of just this permission issue.Thank you in advance!
25
0
49k
Dec ’16
No suitable application records were found. Verify your bundle Identifier ' ' os correct.
So this is very frustrating. My bundle ID is the same in the itunes connect store as it is in xcode. However, when I try and validate my archive for submission I am left with this prompt. My only thought is I had someone code this for me and I added a splash screen as well as changing the app name. I thought I made all the right corrections. Any ideas guys?
17
0
45k
Feb ’17
Xamarin IOS Simulator KeyChain
Hi Guys,I have a Xamarin Forms Application running in visual studio, I connect to my MacMini to run an IOS simulator version 10.3I am using Xamarin Auth to authenticate against Google.My android application has no problem saving the Refresh Token in the Key Store, but my IOS Application does not store the Refresh Token In the KeyChain. I am using the Xamarin Auth API Account Store object to store the account information.I am not sure if I need a developer certificate , or If i need to add something in the Entitlement.plist or add something in the Info.plist.Please help me I am a bit lost and new to IOS development.Like I said my code stores in the account information when I test it on an Android Device, but If I run the code on the IOS simulator it does notstore it.Again I am using Visual Studio 2017 connecting to a MacMini and running an IOS simulator version 10.3 to test the application.Any insight or thoughts or suggestions would greatley assist me in this matter , google is not much help 😢Thank you all for reading this.Kind RegardsAZ
1
0
1.5k
Jun ’17
A build only device cannot be used to run this target.
Hi I just started recently. I am trying to run my first application whic is a single view Application iOs.Once the project is created I set the build only to a generic OS device and here is the error I getA build only device cannot be used to run this target.No supported iOS devices are available. Connect a device to run your application or choose a simulated device as the destination.Please help me out.Thanks,
10
1
35k
Jul ’17
XCode 9 fixed width constraints may cause clipping
I am getting a new warning in XCode 9 that says "xcode 9 fixed width constraints may cause clipping". I intentionally have fixed with constraints on buttons with icons and text where I am using an icon font. In both these cases localization will not change the text thus causing clipping. Is there a way to turn this warning off? It would be nice to turn it off just for items that I have explicitly decided it needs a fixed width but I'm willing to turn it off all the time. I don't want to turn off all warnings in the storyboard because some of them are useful.Also, XCode 9 beta 5 seems to be compiling the entire project over and over again every time I build. It does this even as I'm typing and slows down simple coding tasks.
10
0
15k
Aug ’17
Xcode 9 - Can't Update Help Book
I "upgraded" to XCode 9 today, hoping that it would support the new ISO Appendix K safe string functions (it doesn't). It has always been difficult to get XCode to update a Mac application's Help Book. In the past I have been able to do it by following these instructions:Delete any other versions of the app and empty the trash.Update the Help.plistCreate a new Help.helpindex file using the Help IndexerRemove the help folder from project.Delete the system’s cached help folder using the terminal command: rm -rf ~/Library/Caches/com.apple.help*Sometimes it helps to restart your machine nowSometimes it helps to execute the termanal command rm -rf ~/Library/Caches/com.apple.help* againClean and rebuild the project without the Help folderAdd the new Help folder, clean and rebuildCheck to be sure that the new help book is addedNow this doesn't work. When I run my project with the new Help Book the Help Book window says:The selected topic is currently unavailable.The topic you were trying to view could not be found.XCode logs:2017-09-20 13:45:49.466114-0600 app[2349:187674] Entering AHRegisterHelpBookWithURL2017-09-20 13:45:49.466228-0600 app[2349:187674] Entering AHRegisterHelpBookWithURL: 0Can anyone tell me how to get XCode 9 to do this?
22
0
5.3k
Sep ’17