FAQ Database Discussion Community
ios,swift,core-motion,ios9
I opened my app in the new Xcode7 beta which worked perfectly fine in older version. Now I'm receiving errors, and i don't know how to solve it. Here is the code. Error is commented out. import UIKit import CoreMotion class ViewController: UIViewController { let activityManager = CMMotionActivityManager() let pedoMeter...
xcode,ios9
I have this new warning about the Google Framework in my app: (null): URGENT: all bitcode will be dropped because '/Users/myname/Library/Mobile Documents/com~apple~CloudDocs/foldername/appname/GoogleMobileAds.framework/GoogleMobileAds(GADSlot+AdEvents.o)' was built without bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. Note:...
ios,swift,segue,swift2,ios9
I just ported my project over to Swift 2, and everything is working great - except that even the most simple segues have no back button. Here is the prepare for segue function that I am using: override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) { // Get the new view controller...
ios,swift,uialertview,xcode7,ios9
I'm trying to implement a share button in my application and so naturally, I turned to UIActivityViewController. For some reason, any time I press the share button and it pops up, I get the following message in my log: Unable to simultaneously satisfy constraints. Probably at least one of the...
ios,ipad,multitasking,ios9
I have a large app that I will need some time to optimize for iOS9. Edit: What I am worried about is all the UI getting squeezed together when the app window size is reduced. So my question is, is there any way to force full screen for the app?...
ios,swift,uibutton,ios9
I am trying to convert my project to Swift 2.0. I have a custom UIButton that is now causing an error when I try to build. My code is: var myButton = MyCustomButton.buttonWihType(.Custom) as UIButton This is working with my project in Swift 1.2 but now does not work. The...
swift,xcode7,swift2,ios9
I have a function written in Swift 1.2, that checks for Reachability of Address or IP. Here it is : func isHostConnected(hostAddress : String) -> Bool { var response : NSURLResponse? let request = NSMutableURLRequest(URL: NSURL(string: hostAddress)!) request.timeoutInterval = 3 let data = NSURLConnection.sendSynchronousRequest(request, returningResponse: &response, error: nil) return ((response...
objective-c,beta,ios9,xcode7,osx-elcapitan
Currently, I'm developing an iOS App in Objective-C (iOS8, OS X 10.10, Xcode 6). Apple submit yesterday a new beta of his SDK environment and i'm thinking about the interests to work with an unstable environment (iOS9, OS X 10.11, Xcode 7). When a developer have to work with "beta...
ios,swift,xctest,xcode7,ios9
Every time we change something in the UI, we have to manually prepare and take 375 (= 5 screenshots * 5 device types * 15 languages) screenshots for iTunes Connect's listing. I'm trying to "exploit" iOS 9's new UI testing to automatically prepare and take these screenshots for each language....
ios9,xcode7
On June 8th, Apple announced that with Xcode 7, everyone would be able to install any apps they develop on their devices without an Apple Developer Program Certificate. The Apple Developer website says you only need to log in with your Apple ID. I already did that on Xcode, but...
ios,swift,search,ios9,corespotlight
I am using the CoreSpotLight api to index some content. For some reason I am not able to find the data when I search in the SpotLight. let atset:CSSearchableItemAttributeSet = CSSearchableItemAttributeSet() atset.title = "Simple title" atset.contentDescription = "Simple twitter search" let item = CSSearchableItem(uniqueIdentifier: "id1", domainIdentifier: "com.shrikar.twitter.search", attributeSet: atset) CSSearchableIndex.defaultSearchableIndex().indexSearchableItems([item])...
ios,uilabel,uifont,monospace,ios9
In this years WWDC there was a session about the new system font SanFrancisco in iOS 9 which uses proportional number rendering instead of monospaced numbers per default when linked against the iOS 9 SDK. There is a convenient initializer on NSFont called NSFont.monospacedDigitsSystemFontOfSize(mySize weight:) that can be used to...
ios,swift,swift2,ios9
The following URL opens on iOS 8.3 and lower, but it does not work and iOS 9 let instagramURL = NSURL(string: "instagram://app") Why won't the URL open?...
ios8,xcode7,ios9
I thinking about port my App to Swift 2 and Xcode 7. But the device simulator only targets iOS 9 and I see no way to download iOS 8. I have parallel Xcode 6.3 installed. Is there any way to test and debug my app under iOS 8 with the...
ios9,xcode7
I have a Macbook with OSX 10.10.3, Xcode 7 beta and a iPhone 4. I haven't enrolled to Apple's Developer Program. I think that from the latest WWDC any developer can run apps on their device. So my question is how to achieve that on a real device in Xcode...
ios-enterprise,ios9
This is not a duplicate of Untrusted App Developer. Since iOS9 there is no option to trust an enterprise build. Has anyone found a workaround? ...
ios9,xcode7
Can I download iOS9 + Xcode 7 and still deploy test apps to devices that use the current version of iOS? Sorry for the relatively stupid question, I'm a new developer and not sure how it has worked in the past and I can't find anything on the developer site.......
xctest,ios9,xcode7
Apple released a new UI Testing framework 2 days ago during WWDC2015. I'm trying to write a test case and when I try to record the UI testing, to generate the scaffolding code, it looks the code is being generated, however the UI on the simulator is not actually updating....
swift,sprite-kit,ios9,gameplay-kit
In GameplayKit, I want to conform the protocol GKAgentDelegate, hence use the delegate method func agentDidUpdate(agent: GKAgent). The problem is, in this method, the parameter agent is declared as GKAgent, not GKAgent2D, so that I cannot access agent.position, because the position property is in GKAgent2D, not GKAgent... However in Objective-C...
swift,parse.com,ios9,xcode7,swift2
I am trying to add the Parse.com SDK to my Xcode 7 project. I have followed the getting started guide and I have managed to do it before in Xcode 6. However this time I am being shown this error message when I try to build: ld: framework not found...
ios,contact,ios9,xcode7
I was working with Contact Framework (just adding a contact). And It was saved without any problem (I double checked in Contact List) but recently I notice that this message appears on console: 2015-06-12 09:57:39.723 AddingContactToAddressBook[819:291346] HangTracer interval is 0, forcing to 1s 2015-06-12 09:57:39.725 AddingContactToAddressBook[819:291346] made new hangtracer connection:0x332e10...
swift,tableview,ios9
I have a table view set up to pull from coredata. When I delete from the table view it crashes the app with the following error message fatal error: unexpectedly found nil while unwrapping an Optional value I have figured out the line of code this happens on. The two...
sprite-kit,segue,identifier,swift2,ios9
I need to make a segue from a GameScene to a UIViewController but i keep getting Use of unresolved identifier "push" although I did give it that identifier In the GameSceneViewController I added scene.viewController = self and in my GameScene I added var viewController: UIViewController? and func segue(){ self.viewController.performSegueWithIdentifier(push, sender:...
ios,objective-c,uiprogressview,ios9
I've got a UIProgressView in my Storyboard hooked up to my code. I'm trying to set the progress to something non-zero. Here's an example of my code that I've placed in viewDidLoad. [self.progressBar setProgress:(float)someValueBetween0.1and1.0 animated:NO]; However, what's happening is that the progress bar will be at the value that I...
ios,xcode,ios9
I downloaded the iOS 9 beta for the iPhone 5s and wanted to test an application that I have finished but now it says that my iPhone is an ineligible device. Is there a way I can still run apps on my iPhone without downloading the Xcode 7 beta?
ios,xcode,swift,ios9
I just opened my old project in Xcode 7 beta. The code works perfectly fine in Xcode 6, but now it's showing many error. I don"t know what those are. Can anybody explain why this happened, and how to fix it? Thank you! Here is the Code import UIKit import...
ios,xcode,xcode7,ios9,asset-catalog
I attributed to my .mp4 video the "tokyo" tag for example, and set it as installed during the app installation. Now before I was using a Path to get it from my resources, now it's different because it's located on the Asset Catalog. After found documentations, I tried something like...
swift,user-interface,uicollectionview,ios9,uistackview
What's the difference between a UIHorizontalStackView and a Collection View(Also Vertical stackview)? Can't a collectionView be horizontal and vertical? Why would people use both? What does a UIStackView do that a Collection View can't?...
ios,iphone,afnetworking,ios9
We have an iOS app that connects to our server through HTTPS. When the app is built with the new iOS 9 SDK and ran under iOS 9, the following error occurs: NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9802) The app uses AFNetworking 1.3.4 with pinned certs. The problem occurs if...
cordova,https,sencha-touch,ios9
According to the documentation from https://developer.apple.com/library/prerelease/ios/releasenotes/General/WhatsNewIniOS/Articles/iOS9.html#//apple_ref/doc/uid/TP40016198-DontLinkElementID_13, Apple forces to use HTTPS over HTTP in iOS 9. App Transport Security App Transport Security (ATS) lets an app add a declaration to its Info.plist file that specifies the domains with which it needs secure communication. ATS prevents accidental disclosure, provides secure default...
abaddressbook,cloudkit,ios9,abperson
iOS9 deprecates user info features for CloudKit and for ABPerson. e.g. in the properties of CKDiscoveredUserInfo firstName" Deprecated in iOS 9.0 lastName" Deprecated in iOS 9.0 I want last name and first name as previously provided in iOS8 CloudKit. How to retrieve the similar information in iOS9 CloudKit, ABPerson or...
ios,uitableview,autolayout,ios9,uistackview
Can UIStackView be used to resize, reposition, or collapse views within a UITableViewCell?
xcode7,ios9
After running function - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions there is a crash: Assertion failure in -[UIApplication _runWithMainScene:transitionContext:completion:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKit_Sim/UIKit- *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', `enter code here`reason: 'Application windows are expected to have a root view controller at the end of application launch' *** First throw call stack:...
ios,httprequest,xcode7,ios9
I am using xcode 7 beta version. Now, I am working an API. If, I use the API in Xcode 6.3 it works fine but when same API I used in xcode 7 error message appears Unable to parse. here is the API i am using Please help me out....
ios,swift,core-location,cllocationmanager,ios9
I'm using CoreLocation framework in my app in Xcode7(pre-released),and I noticed that there is a newly added property called allowsBackgroundLocationUpdates in CLLocationManager class. What's the relationship between this property and the location updates in the Background Modes of the Capabilities tab. What's the default value of it and does it...
ios,iphone,xcode,ios9
I'm fairly new to iOS development and I upgraded my device to iOS 9.0 beta, to see how my app faired. However, I did not upgrade to Xcode 7 beta. I'm getting an error that says my device is now "ineligible", specifically, iPhone (3) may be running a version of...
swift,watchkit,xcode7,ios9
I want to send a dictionary from iPhone to Watchkit in watchOS 2. In watchOS 1 it works fine for me with appgroups but in watchOS 2 I know that we have to use WCSession but I don't know how to use it. Please help me find the solution....
ios,url,nsurl,ios9
So, the new beta SDK of iOS released last night has "App Transport Security" which encourages developers to use https instead of http. In principle, this is a great idea, and I already use https in our staging/production environments. However, I don't have https set up in my local development...
ios,multitasking,ios9
I am using Camera API and QRCode API in my Project, Can i implement multitasking(splitvIew, SlideOver) in my Project. I think that when we use camera API, want to use fullscreen. My project also have some other functionalities. is it possible to use Fullscreen only when use Camera API?