ios9

Can't run app on device after upgrade to xcode 7

和自甴很熟 提交于 2019-12-23 08:58:08
问题 I updated my iphone 6 to ios 9 and I also updated Xcode to version 7.0. When I run my project on the simulator, the app works fine. When I try to run the app on my device the app crashes and I see this: dyld`dyld_fatal_error: -> 0x120049088 <+0>: brk #0x3 Originally I was using cocoapods and getting an error that said "Image not found" for each of my frameworks I had configured. I removed cocoapods and manually added all the frameworks but now I'm getting the error above. Any help would be

Xcode7: This application is modifying the autolayout engine from a background thread, which can lead to engine corruption and weird crashes

一曲冷凌霜 提交于 2019-12-23 08:39:30
问题 I got this messages,when I updated Xcode7. Can you tell me solution? Thank. This application is modifying the autolayout engine from a background thread, which can lead to engine corruption and weird crashes. This will cause an exception in a future release. Stack:( 0 CoreFoundation 0x250df883 <redacted> + 150 1 libobjc.A.dylib 0x367dedff objc_exception_throw + 38 2 CoreFoundation 0x250df7b1 <redacted> + 0 3 Foundation 0x25f7be63 <redacted> + 170 4 Foundation 0x25e21ba7 <redacted> + 38 5

What is the UIActivityType for Notes?

痴心易碎 提交于 2019-12-23 07:50:44
问题 I am trying to exclude all services from my UIActivityType except for email and text message. I am using the following statement: activityController.excludedActivityTypes = @[UIActivityTypeAddToReadingList,UIActivityTypeAirDrop,UIActivityTypeAssignToContact,UIActivityTypeCopyToPasteboard, UIActivityTypePostToFacebook,UIActivityTypePostToFlickr,UIActivityTypePostToTencentWeibo,UIActivityTypePostToTwitter, UIActivityTypePostToVimeo,UIActivityTypePostToWeibo,UIActivityTypePrint

iOS9: Will NSAllowsArbitraryLoads=True be allowed for a release in the App Store? [duplicate]

北战南征 提交于 2019-12-23 07:26:49
问题 This question already has answers here : Does App Store reject submission if NSAllowsArbitraryLoads set to YES? (6 answers) Closed 4 years ago . Apple has changed its current App Transport Security model with the release of iOS 9. Since this I have the issue that my App doesn't trust certain web services anymore and will terminate with an error. I found a solution to "fix" this error and I'm wondering if the following solution which I added to the Info.plist file will prevent the App from

Sharing UDP Data across apps (background/foreground or Split screen multitasking) in iOS

感情迁移 提交于 2019-12-23 07:13:46
问题 I'm writing a research application that takes advantage of a specific sensor that broadcasts data over UDP. There are various commercial apps that use this sensor and we are hoping to be able to run both our application and an existing application side by side. In the past (iOS 8 and below) we would run our application in the background to record data and a different application in the foreground. Unfortunately it appears only a single application was able to bind to the incoming UDP data

How to open particular post on the click on push notification

北慕城南 提交于 2019-12-23 05:19:12
问题 in my app i implemented push notification. when my app is in running state and if push notification come i am handle that with this code. func application(application: UIApplication, didReceiveRemoteNotification userInfo: [NSObject : AnyObject]) { print(userInfo) myid = (userInfo["id"] as? String)! print(myid) if let notification = userInfo["aps"] as? NSDictionary, let alert = notification["alert"] as? String { var alertCtrl = UIAlertController(title: "Notification", message: alert as String,

NSManagedObjectContext in ios 10 and ios 9 (core data)

五迷三道 提交于 2019-12-23 05:15:29
问题 I am having an app which use core data which supports both ios 9 as well ios 10.I am using xcode 8.2.1 for developing this project. The AppDelegate file have method for to get ManagedObjectContext when app runs on ios 10 but, how do i get it when app works on ios 9. I tried to google but nothing helped much. Any help ! the code i use to get ManagedObjectContext is here : NSManagedObjectContext *context = ((AppDelegate*)[[UIApplication sharedApplication] delegate]).persistentContainer

Healthkit HKAnchoredObjectQuery in iOS 9 not returning HKDeletedObject

僤鯓⒐⒋嵵緔 提交于 2019-12-23 04:43:47
问题 I was excited to learn that Apple added tracking of deletes in HealthKit in iOS 9. So I set up a test project to try it out. Unfortunately, while I can get new data just fine, I am not getting any deleted objects in my callbacks. I have a functioning HKAnchoredObjectQuery that tracks HKQueryAnchor and gives me new HKSamples whenever I add a BloodGlucose quantity into HealthKit via the Health app. However when I delete that same quantity and re-run the app the HKDeletedObject is always empty.

Black screen when launching the app on device since XCode7 update

一世执手 提交于 2019-12-23 02:43:12
问题 I've updated XCode7 and like everyone, i have to amend a part of my code to be compliant with Swift2. But i have a problem, when i m testing the app on the simulator i have no problem. But when i m trying directly on my real device (Iphone 5S IOS9), a black screen displays just with the level of the battery. I have tried during 3 days to find something on stackoverflow, but nothing seems working. This topic seems to be the same problem, but doen't work actually. IOS 7 launch image, displaying

Push UINavigationController programmatically. iOS9

£可爱£侵袭症+ 提交于 2019-12-23 02:42:41
问题 I want to display a navigation controller programmatically. This code works perfect on iOS 8, but on iOS 9 it doesn't work. var vc = storyboard?.instantiateViewControllerWithIdentifier("view_controller_id") as! UIViewController; var nc = UINavigationController() nc.setViewControllers([vc], animated: false) navigationController?.pushViewController(nc, animated: true) After that I am getting this error *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Pushing