Search results for

“SwiftData inheritance relationship”

4,982 results found

Post

Replies

Boosts

Views

Activity

Got strange errors in logs.
I'm developing for iOS, after a while i'm getting the following error lines:*** ERROR: this process has called an NSArray-taking method, such as initWithArray:, and passed in an NSSet object. This is being worked-around for now, but will soon cause you griefI guess it related to the CoreData with iCloud enabled.I have some relationships (one to many). I'm using NSMutableArray for such variables. But by default Xcode uses NSOrderedSet. But not sure what is wrong?Please, help.
1
0
432
Dec ’15
Xcode 7.1 / 7 / 6.4 Keeps crashing immediately after start
Hi Guys,Will appreciate any help since this major problem just stops me from doing anything dev relatedI had an instance of Xcode7 installed and another instance of Xcode 7.1 which was the one I was usingOne day after I started it - my project starts to load but then about 5 secs after loading the source of the last file open it crashesI tried to open another project but it happens with each one of themI tried to google for a solution , installed xcode 6.4, uninstalled all versions, deleted the /Library/Developer/Xcode folder, re installed xcode 7.1.1Still the same crash!%#$%$the situation is really desperate please help! I'm a freelancer and stuck with my projects since i cant use xcode at all!This is the crash description i get - (thanks helperz!!)Process: Xcode [3034]Path: /Applications/Xcode.app/Contents/MacOS/XcodeIdentifier: com.apple.dt.XcodeVersion: 6.4 (7720)Build Info: IDEFrameworks-7720000000000000~8Code Type: X86-64 (Native)Parent Process: ??? [1]Responsible: Xcode [3034]User ID: 501Date/Time: 201
1
0
225
Dec ’15
Xcode 7.1 / 7 / 6.4 Keeps crashing immediately after start
Hi Guys,Will appreciate any help since this major problem just stops me from doing anything dev relatedI had an instance of Xcode7 installed and another instance of Xcode 7.1 which was the one I was usingOne day after I started it - my project starts to load but then about 5 secs after loading the source of the last file open it crashesI tried to open another project but it happens with each one of themI tried to google for a solution , installed xcode 6.4, uninstalled all versions, deleted the /Library/Developer/Xcode folder, re installed xcode 7.1.1Still the same crash!%#$%$the situation is really desperate please help! I'm a freelancer and stuck with my projects since i cant use xcode at all!This is the crash description i get - (thanks helperz!!)Process: Xcode [3034]Path: /Applications/Xcode.app/Contents/MacOS/XcodeIdentifier: com.apple.dt.XcodeVersion: 6.4 (7720)Build Info: IDEFrameworks-7720000000000000~8Code Type: X86-64 (Native)Parent Process: ??? [1]Responsible: Xcode [3034]User ID: 501Date/Time: 201
1
0
163
Dec ’15
Xcode crashes upon start, all projects reinstall didnt help
Hi Guys,Will appreciate any help since this major problem just stops me from doing anything dev relatedI had an instance of Xcode7 installed and another instance of Xcode 7.1 which was the one I was usingOne day after I started it - my project starts to load but then about 5 secs after loading the source of the last file open it crashesI tried to open another project but it happens with each one of themI tried to google for a solution , installed xcode 6.4, uninstalled all versions, deleted the /Library/Developer/Xcode folder, re installed xcode 7.1.1Still the same crash!%#$%$the situation is really desperate please help! I'm a freelancer and stuck with my projects since i cant use xcode at all!This is the crash description i get - (thanks helperz!!)Process: Xcode [3034]Path: /Applications/Xcode.app/Contents/MacOS/XcodeIdentifier: com.apple.dt.XcodeVersion: 6.4 (7720)Build Info: IDEFrameworks-7720000000000000~8Code Type: X86-64 (Native)Parent Process: ??? [1]Responsible: Xcode [3034]User ID: 501Date/Time: 201
1
0
306
Dec ’15
Library not loaded: @rpath/libswiftCore.dylib image not found?
Hello !dyld: Library not loaded: @rpath/libswiftCore.dylib Referenced from: /Users/[user]/Library/Developer/Xcode/DerivedData/Build/Products/Debug-iphonesimulator/PromiseKit.framework/PromiseKit Reason: image not foundReading other posts, I checkedRunpath Search Paths$(inherited)@executable_path/Frameworks@loader_path/FrameworksEmbedded Content Contains swift Code to 'YES''OU' parameter in my certificatesupdating cocoapods, xcodedeleting derived datas, reinstalling my pods, cleaningIt happened when I updated PromiseKit Pod to version 3.0 that is in Swift now.It is still not working, does somebody have any idea ? Thanks
1
0
4.4k
Dec ’15
Relationship is initialized with boolean value
I have an iOS app written in Swift 2, compiled using Xcode 7.1.1, using Core Data.One of the entities in my model seems to be initialized with the wrong type of values, and I am out of ideas on how to diagnose and fix the problem.Even though my app is using a multi-context Core Data stack, I am able to reproduce the problem with a vanilla Core Data stack (code generated by the Xcode template), using this code in my main view controller's viewDidAppear method:let moc = self.managedObjectContext // Vanilla context from Xcode's Core Data template let e = NSEntityDescription.insertNewObjectForEntityForName(TaskDefinition, inManagedObjectContext: moc) for (name, _) in e.entity.relationshipsByName { print(name) print(e.valueForKey(name)) }Here's the console output:owner nil sharedSlave Optional(0) schoolYearConfiguration nil attachments 2015-12-07 13:35:04.869 Studyo Beta[43113:15618215] -[__NSCFBoolean objectID]: unrecognized selector sent to instance 0x104b51248There are 2 things to note from this log:Line 4: The
4
0
929
Dec ’15
Reply to Relationship is initialized with boolean value
I don't suspect corruption of the SQL database, as I am observing the issue with a blank database, where the TaskDefinition entity is the only inserted entity at the time I am printing its description.I have removed the attachments relationship from my model (that was the one causing the objectId exception), and now all I'm seeing is the sharedMaster and sharedSlave relationships being printed as Optional(0) instead of nil.I should have mentionned that this is just an observation of a discrepancy that might be the cause of my actual problem, which is:I my app, I perform a fetch request on TaskDefinition with the following predicate: sharedMaster.foo == someValue.That fetch request raises this exception: this class is not key value coding-compliant for the key foo.The fact that I am seeing sharedMaster as being reported as Optional(0) instead of nil gives me a clue that there might be something wrong with my model.To summarize:I have a fetch request with a predicate on a nil relationship
Dec ’15
Cannot configure valid signing cert for enterprise distribution
I'm a comple iOS noob and I've inherited an iOS application from a recently-resigned employee and am having to build it for enterprise distribution. I'm running into problems getting a certificate with a valid public/private key pair. We use an on-premise instance of an MDM tool for enterprise distribution, not the Apple store, so I need to sign my app for enterprise distribution. I do have the luxury of having the MacBookPro that was used to develop the application, but the Apple ID used to build it belonged to the previous employee, so I have to build it with our team's Apple ID. I'm building with Xcode v6.3.2 on Yosemite v10.10.3. It seems like the root of my problem (aside from the fact that I don't know what I'm doing) is that I'm building with a cert that does not have a public/private key pair (at least what I can gather from this post).I'm logged onto the MBP as the former employee, and when I first build I get this message:1)I added our team Apple ID in Acode > Preferences > Accounts,
2
0
242
Dec ’15
Reply to Relationship is initialized with boolean value
Found it: I had 2 readonly boolean properties defined in a Swift class extension for TaskDefinition, whose names were isSharedMaster and isSharedSlave. Looks like whenever the sharedMaster and sharedSlave relationships were accessed via KVO (including fetch requests), the getters of my custom properties were being invoked.Renaming the properties fixed the problem.
Dec ’15
Reply to Presenting a view controller from a collapsed split view controller's detail view controller goes back to the master view controller when the presenting view controller is dismissed
In case anyone else ever runs into this problem, I figured it out. The problem was, the UISplitViewController's master view controller wasn't a UINavigationController, but was a different view controller that contained a UINavigationController. Once I reversed this relationship, so the UINavigationController was the master view controller, then it worked as expected.
Topic: UI Frameworks SubTopic: UIKit Tags:
Dec ’15
iOS 9.2: UIButton title fails to show up on iOS Keyboard *after first load*
I am encountering an issue that I have only discovered on devices running on iOS 9.2 with the keyboard extension that I am building. My keys are UIButtons, and the UIButton's title would occasionally not show up. This is especially the case when the keyboard has been previously loaded up in an application (Notes, for example), I switch to another app, and then switch back to Notes. The keyboard would show up with all the rendering, but would just fail to load the UIButton title.The most frustrating thing is that this only occurs some of the times, and it doesn't have any relationship to memory usage. Here is an image showing the issue:http://i.imgur.com/UJK0Y0M.png
Topic: UI Frameworks SubTopic: UIKit Tags:
0
0
203
Dec ’15
desired type = Towns; given type = Towns - Unacceptable type of value for to-one relationship
Hello everyone,I encounter a very strange bug/problem.I'm syncing locally CloudKits objects with CoreData and AleCrim framework.I have 2 entities in my core data model:TownsRestaurantI have defined the relationship one to many and inverse. (yep, you've got it, a Town can have multiple restaurants ;))I'm using the CoreData Stack to persist elements from CloudKit and the AlecrimCoreData library. In a class that grab content from ClouKit, I create the context thanks to Alecrim:let dataContext = DataContext()Then I have a bunch of functions that call class functions that create if needed the NSManagedObjectslet town = Towns.createTownsFromCK(record, dataContext: self.dataContext) ... let restaurant = Restaurants.createRestaurantFromCK(record, dataContext: self.dataContext) ...As you can see I transmit the dataContext. So it's the same for Restaurants and Towns. CloudKit restaurant objects are grabbed after Towns have been locally saved.do { try dataContext.save() } catch { }let restaurantPredicate = NSPr
2
0
1.2k
Dec ’15
Reply to Photo Extension, How Does Photo Place My view controller's view?
The view controller for my Photos extension inherits from a view controller for another extension, which sets the preferred content size. Setting that property clamps the view controller at a smaller size than the frame Photos gives me, which would be fine if I could tell Photos to center my view controller.If I don't set the preferred content size on the view controller, my view controller's view is full-sized in its container. So I guess the right approach would be to have my Photo extension view controller be full sized...and then wrap a smaller subview, and center that subview.
Topic: UI Frameworks SubTopic: AppKit Tags:
Dec ’15
Got strange errors in logs.
I'm developing for iOS, after a while i'm getting the following error lines:*** ERROR: this process has called an NSArray-taking method, such as initWithArray:, and passed in an NSSet object. This is being worked-around for now, but will soon cause you griefI guess it related to the CoreData with iCloud enabled.I have some relationships (one to many). I'm using NSMutableArray for such variables. But by default Xcode uses NSOrderedSet. But not sure what is wrong?Please, help.
Replies
1
Boosts
0
Views
432
Activity
Dec ’15
Xcode 7.1 / 7 / 6.4 Keeps crashing immediately after start
Hi Guys,Will appreciate any help since this major problem just stops me from doing anything dev relatedI had an instance of Xcode7 installed and another instance of Xcode 7.1 which was the one I was usingOne day after I started it - my project starts to load but then about 5 secs after loading the source of the last file open it crashesI tried to open another project but it happens with each one of themI tried to google for a solution , installed xcode 6.4, uninstalled all versions, deleted the /Library/Developer/Xcode folder, re installed xcode 7.1.1Still the same crash!%#$%$the situation is really desperate please help! I'm a freelancer and stuck with my projects since i cant use xcode at all!This is the crash description i get - (thanks helperz!!)Process: Xcode [3034]Path: /Applications/Xcode.app/Contents/MacOS/XcodeIdentifier: com.apple.dt.XcodeVersion: 6.4 (7720)Build Info: IDEFrameworks-7720000000000000~8Code Type: X86-64 (Native)Parent Process: ??? [1]Responsible: Xcode [3034]User ID: 501Date/Time: 201
Replies
1
Boosts
0
Views
225
Activity
Dec ’15
Xcode 7.1 / 7 / 6.4 Keeps crashing immediately after start
Hi Guys,Will appreciate any help since this major problem just stops me from doing anything dev relatedI had an instance of Xcode7 installed and another instance of Xcode 7.1 which was the one I was usingOne day after I started it - my project starts to load but then about 5 secs after loading the source of the last file open it crashesI tried to open another project but it happens with each one of themI tried to google for a solution , installed xcode 6.4, uninstalled all versions, deleted the /Library/Developer/Xcode folder, re installed xcode 7.1.1Still the same crash!%#$%$the situation is really desperate please help! I'm a freelancer and stuck with my projects since i cant use xcode at all!This is the crash description i get - (thanks helperz!!)Process: Xcode [3034]Path: /Applications/Xcode.app/Contents/MacOS/XcodeIdentifier: com.apple.dt.XcodeVersion: 6.4 (7720)Build Info: IDEFrameworks-7720000000000000~8Code Type: X86-64 (Native)Parent Process: ??? [1]Responsible: Xcode [3034]User ID: 501Date/Time: 201
Replies
1
Boosts
0
Views
163
Activity
Dec ’15
Xcode crashes upon start, all projects reinstall didnt help
Hi Guys,Will appreciate any help since this major problem just stops me from doing anything dev relatedI had an instance of Xcode7 installed and another instance of Xcode 7.1 which was the one I was usingOne day after I started it - my project starts to load but then about 5 secs after loading the source of the last file open it crashesI tried to open another project but it happens with each one of themI tried to google for a solution , installed xcode 6.4, uninstalled all versions, deleted the /Library/Developer/Xcode folder, re installed xcode 7.1.1Still the same crash!%#$%$the situation is really desperate please help! I'm a freelancer and stuck with my projects since i cant use xcode at all!This is the crash description i get - (thanks helperz!!)Process: Xcode [3034]Path: /Applications/Xcode.app/Contents/MacOS/XcodeIdentifier: com.apple.dt.XcodeVersion: 6.4 (7720)Build Info: IDEFrameworks-7720000000000000~8Code Type: X86-64 (Native)Parent Process: ??? [1]Responsible: Xcode [3034]User ID: 501Date/Time: 201
Replies
1
Boosts
0
Views
306
Activity
Dec ’15
Should swift compiler bugs now be posted as github issues or Radars?
I have a reduced case for an automatic initialiser inheritence compiler bug, but I'm flummoxed as to where I should be posting it, as a Github issue or as a Radar/bug report?
Replies
5
Boosts
0
Views
956
Activity
Dec ’15
Library not loaded: @rpath/libswiftCore.dylib image not found?
Hello !dyld: Library not loaded: @rpath/libswiftCore.dylib Referenced from: /Users/[user]/Library/Developer/Xcode/DerivedData/Build/Products/Debug-iphonesimulator/PromiseKit.framework/PromiseKit Reason: image not foundReading other posts, I checkedRunpath Search Paths$(inherited)@executable_path/Frameworks@loader_path/FrameworksEmbedded Content Contains swift Code to 'YES''OU' parameter in my certificatesupdating cocoapods, xcodedeleting derived datas, reinstalling my pods, cleaningIt happened when I updated PromiseKit Pod to version 3.0 that is in Swift now.It is still not working, does somebody have any idea ? Thanks
Replies
1
Boosts
0
Views
4.4k
Activity
Dec ’15
Relationship is initialized with boolean value
I have an iOS app written in Swift 2, compiled using Xcode 7.1.1, using Core Data.One of the entities in my model seems to be initialized with the wrong type of values, and I am out of ideas on how to diagnose and fix the problem.Even though my app is using a multi-context Core Data stack, I am able to reproduce the problem with a vanilla Core Data stack (code generated by the Xcode template), using this code in my main view controller's viewDidAppear method:let moc = self.managedObjectContext // Vanilla context from Xcode's Core Data template let e = NSEntityDescription.insertNewObjectForEntityForName(TaskDefinition, inManagedObjectContext: moc) for (name, _) in e.entity.relationshipsByName { print(name) print(e.valueForKey(name)) }Here's the console output:owner nil sharedSlave Optional(0) schoolYearConfiguration nil attachments 2015-12-07 13:35:04.869 Studyo Beta[43113:15618215] -[__NSCFBoolean objectID]: unrecognized selector sent to instance 0x104b51248There are 2 things to note from this log:Line 4: The
Replies
4
Boosts
0
Views
929
Activity
Dec ’15
Reply to Relationship is initialized with boolean value
I don't suspect corruption of the SQL database, as I am observing the issue with a blank database, where the TaskDefinition entity is the only inserted entity at the time I am printing its description.I have removed the attachments relationship from my model (that was the one causing the objectId exception), and now all I'm seeing is the sharedMaster and sharedSlave relationships being printed as Optional(0) instead of nil.I should have mentionned that this is just an observation of a discrepancy that might be the cause of my actual problem, which is:I my app, I perform a fetch request on TaskDefinition with the following predicate: sharedMaster.foo == someValue.That fetch request raises this exception: this class is not key value coding-compliant for the key foo.The fact that I am seeing sharedMaster as being reported as Optional(0) instead of nil gives me a clue that there might be something wrong with my model.To summarize:I have a fetch request with a predicate on a nil relationship
Replies
Boosts
Views
Activity
Dec ’15
Reply to Relationship is initialized with boolean value
Renaming the sharedMaster and sharedSlave relationships fixed all my problems.But why?
Replies
Boosts
Views
Activity
Dec ’15
Cannot configure valid signing cert for enterprise distribution
I'm a comple iOS noob and I've inherited an iOS application from a recently-resigned employee and am having to build it for enterprise distribution. I'm running into problems getting a certificate with a valid public/private key pair. We use an on-premise instance of an MDM tool for enterprise distribution, not the Apple store, so I need to sign my app for enterprise distribution. I do have the luxury of having the MacBookPro that was used to develop the application, but the Apple ID used to build it belonged to the previous employee, so I have to build it with our team's Apple ID. I'm building with Xcode v6.3.2 on Yosemite v10.10.3. It seems like the root of my problem (aside from the fact that I don't know what I'm doing) is that I'm building with a cert that does not have a public/private key pair (at least what I can gather from this post).I'm logged onto the MBP as the former employee, and when I first build I get this message:1)I added our team Apple ID in Acode > Preferences > Accounts,
Replies
2
Boosts
0
Views
242
Activity
Dec ’15
Reply to Relationship is initialized with boolean value
Found it: I had 2 readonly boolean properties defined in a Swift class extension for TaskDefinition, whose names were isSharedMaster and isSharedSlave. Looks like whenever the sharedMaster and sharedSlave relationships were accessed via KVO (including fetch requests), the getters of my custom properties were being invoked.Renaming the properties fixed the problem.
Replies
Boosts
Views
Activity
Dec ’15
Reply to Presenting a view controller from a collapsed split view controller's detail view controller goes back to the master view controller when the presenting view controller is dismissed
In case anyone else ever runs into this problem, I figured it out. The problem was, the UISplitViewController's master view controller wasn't a UINavigationController, but was a different view controller that contained a UINavigationController. Once I reversed this relationship, so the UINavigationController was the master view controller, then it worked as expected.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Dec ’15
iOS 9.2: UIButton title fails to show up on iOS Keyboard *after first load*
I am encountering an issue that I have only discovered on devices running on iOS 9.2 with the keyboard extension that I am building. My keys are UIButtons, and the UIButton's title would occasionally not show up. This is especially the case when the keyboard has been previously loaded up in an application (Notes, for example), I switch to another app, and then switch back to Notes. The keyboard would show up with all the rendering, but would just fail to load the UIButton title.The most frustrating thing is that this only occurs some of the times, and it doesn't have any relationship to memory usage. Here is an image showing the issue:http://i.imgur.com/UJK0Y0M.png
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
0
Boosts
0
Views
203
Activity
Dec ’15
desired type = Towns; given type = Towns - Unacceptable type of value for to-one relationship
Hello everyone,I encounter a very strange bug/problem.I'm syncing locally CloudKits objects with CoreData and AleCrim framework.I have 2 entities in my core data model:TownsRestaurantI have defined the relationship one to many and inverse. (yep, you've got it, a Town can have multiple restaurants ;))I'm using the CoreData Stack to persist elements from CloudKit and the AlecrimCoreData library. In a class that grab content from ClouKit, I create the context thanks to Alecrim:let dataContext = DataContext()Then I have a bunch of functions that call class functions that create if needed the NSManagedObjectslet town = Towns.createTownsFromCK(record, dataContext: self.dataContext) ... let restaurant = Restaurants.createRestaurantFromCK(record, dataContext: self.dataContext) ...As you can see I transmit the dataContext. So it's the same for Restaurants and Towns. CloudKit restaurant objects are grabbed after Towns have been locally saved.do { try dataContext.save() } catch { }let restaurantPredicate = NSPr
Replies
2
Boosts
0
Views
1.2k
Activity
Dec ’15
Reply to Photo Extension, How Does Photo Place My view controller's view?
The view controller for my Photos extension inherits from a view controller for another extension, which sets the preferred content size. Setting that property clamps the view controller at a smaller size than the frame Photos gives me, which would be fine if I could tell Photos to center my view controller.If I don't set the preferred content size on the view controller, my view controller's view is full-sized in its container. So I guess the right approach would be to have my Photo extension view controller be full sized...and then wrap a smaller subview, and center that subview.
Topic: UI Frameworks SubTopic: AppKit Tags:
Replies
Boosts
Views
Activity
Dec ’15