xcode8

cannot build project with xcode 8 beta 6

柔情痞子 提交于 2020-01-26 01:20:16
问题 I am getting following error after I add a library via carthage - library name compiled with older version of Swift language (2.0) than previous files (3.0) for architecture x86_64 I have tried it with Argo library. (https://github.com/thoughtbot/Argo) I have selected the correct xcode version using xcode-select utility. What could be the problem? Any help is greatly appreciated Thanks! 回答1: From what I learned, looks like you can't have libraries written in different versions of Swift. In my

Xcode 8 Says Provisioning Profile Has aps-environment entitlement but after export Archive aps-environment is missing

僤鯓⒐⒋嵵緔 提交于 2020-01-25 09:37:06
问题 So in Xcode the provision profile says that aps-environment entitlement is part of it but after Archive the provisioning profile is missing the aps-entitlement . 回答1: The Xcode 8 release notes mention this issue: Xcode 8 does not automatically copy the aps-environment entitlement from provisioning profiles at build time. This behavior is intentional. To use this entitlement, either enable Push Notifications in the project editor’s Capabilities pane, or manually add the entitlement to your

Json Parsing in swift 3 using Alamofire

时光怂恿深爱的人放手 提交于 2020-01-24 19:56:05
问题 I am working in swift 3. I am new to ios. I am trying to parse the json data like My jsonVlaue is : { data = ( { Password = "@1234"; UserName = "<null>"; "___class" = OrderTable; "__meta" = "{\"relationRemovalIds\":{},\"selectedProperties\":[\"UserName\",\"created\",\"name\",\"___class\",\"ownerId\",\"updated\",\"objectId\",\"Password\"],\"relatedObjects\":{}}"; created = 1483525854000; name = TestMan; objectId = "4316DEBA-78C1-C7BD-FFBC-3CB77D747F00"; ownerId = "<null>"; updated = "<null>";

How to automatically generate methods like ViewDidLoad

倾然丶 夕夏残阳落幕 提交于 2020-01-24 13:21:31
问题 I want to create a custom class that extends uiviewcontroller with a function that when I create a subClass of my custom class, that function generate automatically. like viewDidLoad and didReceiveMemoryWarning in subclasses of UIViewController. what can I do? My CustomViewController : class CustomViewController: UIViewController My subclass of CustomViewController : class MySubClass: CustomViewController { override func generatedFunction() { //Do something } } 回答1: Use code snippets. Go to

Is it possible to use core data (Xcode 8 and Swift 3.0) with both iOS 9 and 10 ?

巧了我就是萌 提交于 2020-01-24 12:48:33
问题 I want start new app in Swift 3 Xcode 8 and support iOS 8.4/9.x How to deal with Core Data ? 回答1: Yes, it is easily possible. Swift 3 is targeted to run on iOS v8+. You will only be able to use the subset of APIs supported on iOS v8.4 though. The best way to find out the answer to your question though is to create a test project that uses Core Data. You'll find that NSPersistentContainer creates an error. Why? It isn't available on the earlier OSes. Alternatively, create a test project with

Unable to create Podfile because 'plist file at path doesn't exist'

心不动则不痛 提交于 2020-01-24 12:04:09
问题 Running command pod init . returns: [!] The plist file at path /Users/admin/Desktop/TestProject/project.pbxproj doesn't exist. I'm running the command from the 'Test Project' folder. To get to the .plist file: TestProject > TestProject > Info.plist . I have the path to the plist file set up in my build settings like this: What am I missing? 回答1: Because the command is not pod init . it's pod init CocaoPods Guide Page That period is just the end of the sentence in cocoapod's guide. https:/

Upgrade Xcode 7.3.1 Project to Xcode 8.0

拜拜、爱过 提交于 2020-01-17 18:02:29
问题 I want to upgrade my Xcode 7.3.1 Project to Xcode 8. My project was written in swift 2.2 in Xcode 7 but now I want to upgrade to Xcode 8 with swift 3.0. My project contains some pod-files library while upgrading to Xcode 8, I am facing lots of warning and error. Warning related to storyboard is solved but Error in pod files are not solved. Xcode tell me to convert swift syntax to latest syntax so I did it. Swift syntax error shows in pod-files. I am trying to solve pod file swift syntax error

Unable to instantiate NSFetchedResultController with generic type AnyObject in Swift 3

时光总嘲笑我的痴心妄想 提交于 2020-01-14 13:05:53
问题 I'm experimenting with CoreData in Swift 3 and have come up against a very bizarre circular compiler error in Xcode 8 beta. NSFetchedResultsController needs a generic type parameter and AnyObject has worked fine up until now. The compiler throws the error: Type 'AnyObject' does not conform to protocol 'NSFetchRequestObject' To make me extra confused, if you delete the type parameter, XCode then says: Reference to generic type NSFetchedResultsController requires argument in `<...>` and

iOS simulators not working behind proxy since upgraded to Xcode 8.2.1?

蓝咒 提交于 2020-01-14 08:45:41
问题 I am working in a proxy environment that requires authentication. Since i have upgraded to Xcode 8.2.1, the simulators stop working, however it was working fine with Xcode 8.1 and 7.3 Any help regarding this? This is the error what i am getting PAC Fetch failed with error [NSURLErrorDomain:-1022] [] nw_proxy_resolver_create_parsed_array PAC evaluation error: NSURLErrorDomain: -1022 回答1: The simulator uses your computers network connection, so I recommend checking the System Preferences >

I want to change the sample rate from my input node from 44100 to 8000

点点圈 提交于 2020-01-12 09:52:52
问题 I want to read the buffer from my microphone into an array, with 441khz its working fine but with the sample rate 8khz it comes to an error ERROR: >avae> AVAudioIONodeImpl.mm:884: SetOutputFormat: required condition is false: format.sampleRate == hwFormat.sampleRate 2016-11-26 19:32:40.674 Atem[5800:1168274] *** Terminating app due to uncaught exception 'com.apple.coreaudio.avfaudio', reason: 'required condition is false: format.sampleRate == hwFormat.sampleRate' with my following code : var