Search results for

Xcode

92,321 results found

Post

Replies

Boosts

Views

Activity

Reply to I have created a gitignore file but xCode is not using it so I get merge source code errors, what have I done wrong ?
Your gitignore file must have the following name:.gitignoreYou can't call it default.gitignore and have git recognize it as a gitignore file.You don't tell Xcode where to look for your .gitignore file. You place the .gitignore file in your git repository, normally at the root of the repository, inside the .git folder.Keep in mind the Finder hides files and folders that begin with a period so you may have a difficult time finding your .gitignore file and your git repository in the Finder. I normally use BBEdit to write and save .gitignore files because it can show hidden files and directories in the Open and Save dialogs. I don't know if TextWrangler has the same capability. There are also utilities and Terminal commands to temporarily show hidden files and directories. An Internet search for os x show hidden files reveals many articles showing the Terminal commands to use.
Jun ’15
Module file's minimum deployment target is ios9.0 v9.0
When creating a new playground in Xcode 7 beta (7A120f) and using a custom Cocoa Touch Framework I get the error:Playground execution failed: Game.playground:4:8: error: module file's minimum deployment target is ios9.0 v9.0The custom framework does use specific iOS9 code. When adding a class to the Sources folder using GKEntity the compiler also shows an error explaining I should use:@available(iOS 9.0, *)The meta data of the playground does not show any indication the Playground uses a deployment target (8.4 or some other version).What am I missing here? Why can't I use a custom framework created with iOS9?
1
0
4.7k
Jun ’15
Xcode Server Simulator Times Out
Hi,I'm working on getting up and running with Xcode Server for Continuous Integration. I'm running Xcode 6.3.2 on my development machine, and have OS X Server 4.1 running on an iMac with the latest version of Yosemite. I've created a bot for my project, but every time it runs I get an error stating the followingBot Issue: error. Uncategorized.Issue: Test target Tests encountered an error (Timed out waiting 120 seconds for simulator to boot, current state is 1. If you believe th.Integration Number: 18.Integration URL: https://ucs-imac.slcb.uc.edu/xcode/bots/B6CBA97/integrationsDescription: Test target Tests encountered an error (Timed out waiting 120 seconds for simulator to boot, current state is 1. If you believe this error represents a bug, please attach the log file at /Library/Developer/XcodeServer/Integrations/Integration-22c44be172594e54917e9723b9116f90/Session-2015-06-15_18:17:02-ukAljH.log).I've seen several similar issues related to Jenkins and other third party CI servers.
2
0
2.5k
Jun ’15
CFNotificationCenterAddObserver
Has anyone figured out how to call CFNotificationCenterAddObserver() from Swift yet?Session 224 had the following example:CFNotificationCenterAddObserver(nc, nil, { _ in self.reloadModel() }, com.example.app-model-updated, nil, .DeliverImmediately)However, I can't get this to compile. Xcode 6.4b4 gives the following error:Cannot invoke 'CFNotificationCenterAddObserver' with an argument list of type '(CFNotificationCenter!, nil, (_) -> _, String, nil, CFNotificationSuspensionBehavior)'
1
0
657
Jun ’15
Reference class / struct in a Playground page Xcode 7 Beta 1
Hello everyone! I'm loving the new Playground pages feature! The only issue I found so far is that - apparently - I cannot refer to anything declared in another page. Shared sources are all right, but wouldn't work for what I'm trying to do: I want to explain a topic in one page and build on top of that in the following page.For example, assume you're teaching Algorithms, you might want to have a page that explains Queues and Stacks. In another page you might want to explain the BFS algorithm to traverse trees and graphs. To implement BFS you need a Queue and of course you'd like to reuse the implementation you wrote in the previous page. As far as I can see playing with the first beta of Xcode 7 (7A120f), this isn't currently possible. It seems that every page is a self-standing playground and they just happen to be bundled together.Am I right or is there a way to reference classes, structs, etc. from one Playground page in another page in the same Playground? If not, is it a feature we can expect b
3
0
1.7k
Jun ’15
Need help adding arrays to dictionary - cocoa
I am following this tutorial: https://www.youtube.com/watch?v=4_0Ao11zrtMI am trying to make a login box similar to the one in the video, but for a cocoa app on OS X. I am fairly new at objective-c, and this is my first app.Here is the current code for my LoginController.m file:#import LoginController.h @implementation LoginController - (void)awakeFromNib { [prodigyLabel setTextColor:[NSColor orangeColor]]; [studioLabel setTextColor:[NSColor darkGrayColor]]; loginDictionary = [[NSDictionary alloc] initWithObjects:@password forKeys:@username]; } - (IBAction)loginButtonPressed:(id)sender { } @endThe loginDictionary part was modified because I looked online and thought it might help when I found it on a different site, hence it says NSDictionary alloc.It originally said:loginDictionary = [[NSArray alloc] initWithObjects:@password, nil];But there is no option for forKeys as seen in the tutorial.I keep getting error:Incompatible pointer types sending 'NSString *' to parameter of type 'NSArray *'P
2
0
333
Jun ’15
Reply to CFNotificationCenterAddObserver
Xcode 7 is more helpful and complains about captures:> A C function pointer cannot be formed from a closure that captures contextI can get it to compile if I change the closure to contain only a call to print(). Kinda misses the point since most of the time you'd want to capture a reference to an object you want to act on.
Topic: Programming Languages SubTopic: Swift Tags:
Jun ’15
Reply to VPP or DEP simulators? Anyone find the download links?
I tried with and without the ChangeManagementState attribute and neither worked for installing a store app.It is able to change already user-installed apps to be managed just fine, its just fresh store apps dont install anymoreThe xcode logs looked just say the app is queued for install but nothing appears on the device home screen and after pulling a ManagedApplicationList command to see the status of pending app installs, it returns a 'ManagedButUninstalled' status for the app you just tried to install.I've logged this with apple, they had a similar issue when ios8 prerelease came out tooIf anyone is actually able to install store apps on ios9 still please let me know
Jun ’15
Reply to iOS 9 Beta battery life
Thanks, just shut down iCloud drive. my usage was Mail Background Activity and Home & Lock Screen. Phone running hot and battery draining. I was using Low Power mode (in Battery in Settings) which ran a bit cooler and maybe preserved battery life but still was draining very quickly. However, my apps that use SpriteKit and SceneKit ran so much faster now that they use Metal (recompiled in XCode Beta) that I'm in awe! I still want my battery life back though. 👿 Seriously, Beta 1.
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15
Reply to Zero GPU with SpriteKit
My SpriteKit and SceneKit apps are blazing fast after recompile with XCode 7 beta and running on iOS9 because they are using Metal, just fyi. Simple apps (Bouncy Boucy Photo Chaos, Sprites and Forces) run much faster on iOS9. Then a new test app using SceneKit is so fast I can't belive it! Source code for all is on GitHub/robzim if you want to try them out! Best regards, RobZ
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15
Reply to Troubleshooting the launch of local user XPC Launch Agent
Thanks for your suggestions, Kevin.ktam wrote:> So just to get something working I'd recommend removing entitlements from the equation right now and adding them back in afterwards.While I haven't tried this with the code I posted above I did try that later with my original test code and that didn't resolve the invalid connection issue.> The path to the program in the Program arguments array is to the executable within the LaunchAgent bundle, not just to the Launch Agent itself. I'm pretty certain this is needed.I've corrected that issue later in both the code above and with my original test code.> I do not use ~ but fully resolved paths to the Launch Agent as well.The later versions of the code posted above and my original test code use full/absolute paths to the Launch Agent in the launchd plist.> I had to use launchctl unload/load for launchd to recognize that the launchd plist file had been modified.I've been doing this in-between every change.> you might need to prefix your service name wit
Jun ’15
Reply to guard vs control-flow-aware typing?
It is in effect the same thing. In particular, you can currently write this code (where x is a property of optional type):guard let x = x else {return} // 'x' is an unwrapped local for the rest of the scopeNote that it's not really unsafe, because you can't assign to the new 'x', and it has the same value as the old x.All that's really in question here is whether this sort of thing is always going to require an explict let x = x somewhere in the syntax, as above, or whether this in the future might be done silently by the compiler.
Topic: Programming Languages SubTopic: Swift Tags:
Jun ’15