Search results for

DTiPhoneSimulatorErrorDomain Code 2

158,639 results found

Post

Replies

Boosts

Views

Activity

Xcode 6.3.2 "forgetting" source control
I just got a new iMac, and installed Xcode 6.3.2 on it. I checked out a copy of my source code repository, and everything runs and builds just fine, but there's one very weird glitch.When I start up Xcode, everything's normal, I can see which files have been modified, and look at their deltas in the Version Editor.However, after a couple of minutes (at most), Xcode will suddenly forget the source code repository, and mark all my files with ? (indicating that it thinks the file is unversioned).In the File Inspector, the files now have Version Not yet committed and Status Unversioned, but they also have a Location corresponding to the repository location (e.g. svn+ssh://repo.flim.com/../trunk/Foo/bar.swift since I happen to be using subversion for this project).From the shell, access to the repository is completely normal - no errors. And if I restart Xcode, everthing works fine - until whatever it is updates, and marks everything as unversioned again.I've been using this configuration for age
3
0
2k
Jun ’15
Black bars when using simulator?
Anyone have this issue? My app works fine when I download it on my device from the App Store, but if I go to run the same branch of my code in the simulator running 10.11 and Xcode 7 Beta I get black bars. I've not had this issue before, and my app is optimized for larger screens. In addition, on a branch where I started implementing Auto Layout, I have the same issue. Even if I remove all my constraints and set to suggested constraints, I have the same issue. Also, I have tried to set the Size Constraints, but that doesn't do anything. What is even more strange, is if I load the app onto my iOS 9 device, I get the same thing. Is anyone else having this issue? Or am I just doing something wrong?
5
0
4.8k
Jun ’15
SpriteKit SKSprite only displaying if asset is on “Universal”
'm having a little bit of trouble with an image I need for my SpriteKit project. I'm creating a background for my game. This is the code I have in my scene:let backgroundName = Background let backgroundImage = SKSpriteNode(imageNamed: backgroundName) backgroundImage.position = CGPoint(x:CGRectGetMidX(self.frame), y:CGRectGetMidY(self.frame)) self.addChild(backgroundImage)I think there's no problem there. This is my asset catalog:http://i.stack.imgur.com/BauYU.pngI don't think there's a problem there, either. But that doesn't work. When running the app on my iPad, all I get is a black background. The interesting thing is that if I put the assets in a Universal group, instead of the iPad group, the background will show correctly. Why? This is something I don't want to do, since I want to add assets for the iPhone.I'm using Xcode 7 and iOS 9.Any help would be appreciated. Thanks.
4
0
1.3k
Jun ’15
Wednesday Security Lab notes
FileVault 2 and fdesetupQuestion:When changing account passwords outside of the login window or System Preferences, it does not appear that the FileVault 2 pre-boot login screen gets updated with the new password information.Is there a way to force the OS to update the pre-boot login screen with the new password info?Use cases that may apply:A. Using the passwd command (running as root) to update the account passwordB. Dropping updated plist files into /var/db/dslocal/nodes/Default/usersAnswer:After password change, may need to remove and add user with fdesetup. This will flush the old password's derived key and set up a derived key for the new password.File bug reports for use cases A and B above. The response for use case B may be That's horrifying. Don't do that.Remove:fdesetup remove -user username_goes_hereRe-add:fdesetup add -usertoadd username_goes_hereQuestion:Does the FV 2 password change update process work when an AD DC is accessible via WiFi and not via Ethernet? Ran int
0
0
2.6k
Jun ’15
Downloading Problems
Hello,I just wanted to download OS X v10.11, so I pressed the downloadlink which transfered me to the App-Store Giftcardsite. I typed in my Download Code, but it said the code is currently not available.I hope someone can help me out.Thanks and greetings from Switzerland,Grizzly
3
0
241
Jun ’15
Reply to Swift 1.2 and Swift 2 in the same project?
There is always a penalty for using bleeding edge stuff. In the case of Swift, there has been significant penalties for early adopters as people have already discovered.From my understanding, people who have deployed Swift 1.x apps before will be forced to update to Swift 2 if they want to target anything specific to iOS 9 or OS X 10.11 (assuming those SDKs will not be available for Swift 1.x on Xcode 6 at least officially). Otherwise, it is safer to stay with Swift 1.x on Xcode 6 for now (and even more safer if you had not adopted Swift at all so you can target latest APIs in Xcode 7 without penalties).They have not officially confirmed yet which older iOS or OS X versions will be (and not be) supported for Swift 2. So, I am not sure how one can make a safe and informed decision on a migration path for a significant project using Swift.What is your compelling use case that requires you to convert an existing project to Swift 2? Worth thinking about.If the new language constructs, l
Topic: Programming Languages SubTopic: Swift Tags:
Jun ’15
Reply to First install impressions?
On my MacPro I have some few issues.Razer Synapse does not show any connection Razer device like my keyboard or my mouse.Chrome WebGL is falling back to software rendering which causes some websites to become very slowly and flickery when scrolling.Git-Tower is always crashing when opening a Git repository.Had 2 Kernel Paniks when my Mac is set to sleep - Power Nap is disabled already (hope that fixes the Issue now)LG TrueColor app for my 21:9 display says it couldnt find USB connection (I guess the same issue like with Razer Synapse)StarCraft2 shows a pesky issue with this cursor zoom effect when shaking the mouse cursor. Still an issue How to disable 'Call out your cursor'?Dropbox-experimental does not start at launch.Box does crash and causes a dialog to show up, asking to terminate Box synchronisation.Memory Monitor does not start all.Typing my password to allow installations of tools is very troublesom. When I type as fast as usual then OSX does stop recognizing my typings at 3rd or 4th characte
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15
prepareForSegue vs. pushViewController
I've noticed somthing interesting when using segues and I do not know why it happens. If someone could explain that would be great.I am using a Storyboard for the first time and hooked up a number of segues. I named the segues and used the prepareForSegue method. What I am trying to do is the following.The HomeViewController in my navigation stack conforms to a delegate. When this degelate method is called it checks to see if the next view FeedViewController in the navigation stack has been loaded. If it has, then is reloads the tableView (feedsTableView) on this view. Here is the delegate call back method.func floDataHanlderDidFinishLoading(dataHandler : FLODataHandler) -> () { if(self.feedViewController!.feedsTableView != nil) { println(The reloads feedsTableView is called) self.feedViewController!.feedsTableView.reloadData() } }When I am using the prepareForSegue method, the if (self.feedViewController!.feedsTableView != nil) is never satisfied even if FeedViewController has been loaded. However if I us
5
0
4.9k
Jun ’15
Swift 2.0 error handling for property (get / set)
Swift 2.0 allow function error handling by using the throws keyword.The Swift doc explain that throws is part a a function type.Now I would like to use the same throw / try / catch mechanism to handle errors in the context of computed properties (i.e. throw an error in the get / set code).Is this possible now ? Planned for future Swift 2.x version ?Thanks,Datagram
3
0
3.1k
Jun ’15
Reply to my OS X 10.11 will not download
Was having same problem. It finally worked when restarted mac, logged into app store, logged into apple dev site in safari (osx 10.10.3 ), clicked download, redeem code appeared in app store page, BUT APP STORE THEN REQUESTED AGEE TO NEW CONDITIONS (this was first time app store asked this), then redeem worked and download began. Hope this helps.BTW, I wish the 'period' worked same way in OSX as iOS, double space. Confusing for me anyway.John
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15
Reply to Xcode 7 crashes when trying to select the Main.storyboard.
Same here. Every time I try to view a storyboard or .xib in Xcode 7, I get this exception:UNCAUGHT EXCEPTION (NSInvalidArgumentException): *** -containsValueForKey: only defined for abstract class. Define -[NSUnarchiver containsValueForKey:]!I can run the app fine, I just can't actually view or edit my storyboard/.xibs in Xcode anymore!Stack trace:Process: Xcode [4209] Path: /Applications/Xcode-beta.app/Contents/MacOS/Xcode Identifier: com.apple.dt.Xcode Version: 7.0 (8123.26) Build Info: IDEFrameworks-8123026000000000~7 Code Type: X86-64 (Native) Parent Process: ??? [1] Responsible: Xcode [4209] User ID: 501 Date/Time: 2015-06-10 15:05:14.928 -0400 OS Version: Mac OS X 10.10.3 (14D136) Report Version: 11 Anonymous UUID: 9B7324FE-113A-BF78-0590-ECC7DDE67CD9 Sleep/Wake UUID: A68D9DCC-EE2D-439B-B979-F232409B3139 Time Awake Since Boot: 10000 seconds Time Since Wake: 3700 seconds Crashed Thread: 0 Dispatch queue: com.apple.main-thread Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x000000
Jun ’15
Accessing CoreData asynchronously from the UI and with Networking
Hello,I am working on a time table app for students. It will get new data from a webserver and use Core Data to save data locally.Also I heard that you should use NSManagedContexts only from the thread where you created them.I will have two objects that access Core Data, the webclient and the UI. The webclient will download the data and save it into Core Data, the UI will only read the saved data. The save and write operations will happen asynchronously.My plan is the following:1. Create a class that superviews all Data relevant operations (DataManager).2. The DataManager has an own private concurrent queue.3. It also has one NSManagedContext instance.4. All CoreData related operations will be executed in the DataManager in dispatch_asyc, dispatch_sync (read-operations) and dispatch_barrier (write-operations) closures.Data downloading procedure:1. Download the data (background queue)2. in a dispatch_barrier block that runs on the DataManger queue:2a. create NSManagedObjects2b. save
3
0
848
Jun ’15
Reply to prepareForSegue vs. pushViewController
I suspect the problem is not with self.feedViewController (if your segue works, then that is probably set properly). It's more likely with the table view. You should never manipulate another view controller's views directly. You have no idea where it is in its life cycle (e.g. whether or not the view has been loaded yet). You should define a property or method on the destination VC that says here is the data to be displayed. It should then be up to the destination VC to either 1) just stash the data for later if the view has not been loaded or the VC is not visible or something, or 2) update its view if it's visible (e.g. by storing the data in its model and calling reloadData on a table view).In any case when investigating issues like this you should break up long chains (if self.someProperty!.someOtherProperty!.someMethod() == blah) into multiple lines of code, and step through it in the debugger line by line to find out exactly what is nil or not and inspect the values and state of all ob
Jun ’15
Does playground have a table syntax in rich markdown?
Hey Everyone, The new rich comments is really nice for keeping the code easy to skim. I am curious though if there is a syntax for tables yet? I feel tables are an easy way to get a lot of information into a small area like in GitHub's markdown and would love to use it in playgrounds for things like header information if its possible.Thank you in advance!
0
0
153
Jun ’15