xcode7

Specify location for ipa file in Xcode 7 Ad-Hoc release

梦想的初衷 提交于 2019-12-30 02:37:06
问题 UPDATE: This issue is still present in Xcode 7.1 beta 2. Looks like this will be here a while. I just updated to Xcode 7 GM and am in the process of generating ad-hoc archives for various builds. However, it does not appear that you can specify the directory path where you want to save the resulting .ipa file. It is going straight to the desktop in a pre-named folder that includes a timestamp. Steps to (hopefully) reproduce From the main menu, select Product --> Archive In the resulting

Select/deselect buttons swift xcode 7

我们两清 提交于 2019-12-30 02:28:12
问题 Part way done with learning swift but I hit a small wall and yet again, I'm sure I'm just a bit new at this and an easy solution is there but I'm having trouble figuring out how to select/deselect buttons below is what I have so far and it is a button turns into a checkmark when clicked on... I've gotten that far but I need that button to deselect when clicked on again and then obviously be able to be clicked again if need be. @IBAction func buttonPressed(sender: AnyObject) { sender.setImage

How to detect where the on demand resources are located after being downloaded?

吃可爱长大的小学妹 提交于 2019-12-29 09:17:12
问题 I implement the app thinning in my project by getting the reference from below two answers:- https://stackoverflow.com/a/33145955/988169 https://stackoverflow.com/a/31688592/988169 How to detect where the on demand resources are located after being downloaded? 回答1: Unless you specified a bundle when you initialized the resource request, the resources are placed in the main bundle by default. So for example, you could access them this way, if appropriate to your type of resource: NSString

sorted function in Swift 2

限于喜欢 提交于 2019-12-29 07:55:48
问题 I'm sorting an Array like this: var users = ["John", "Matt", "Mary", "Dani", "Steve"] func back (s1:String, s2:String) -> Bool { return s1 > s2 } sorted(users, back) But I'm getting this error 'sorted' is unavailable: call the 'sort()' method on the collection What should be the correct way to use the sort() method here? 回答1: Follow what the error message is telling you, and call sort on the collection: users.sort(back) Note that in Swift 2 , sorted is now sort and the old sort is now

Xcode- 7: No such file or directory

 ̄綄美尐妖づ 提交于 2019-12-29 06:49:23
问题 I keep trying to run my Xcode project (titled "YidKit") and it keeps giving me the following error: error: /Users/Dani/Library/Developer/Xcode/DerivedData/YidKit-exnbjyxkgkbeaedoznkmtoenfijq/Build/Products/Debug-iphoneos/YidKitTests.xctest: No such file or directory . I spent several hours online, trying different solutions that I've seen, and nothing has worked. This is driving me crazy, because it is the only error left and I just finished getting rid of about 80 that were caused by Swift 2

Google Api error “Multiple methods named 'initWithArray:' found”

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-28 12:32:42
问题 I am using the google calendar api and I am getting two errors. GTMGatherInputStream.m:25:13: Multiple methods named 'initWithArray:' found #import "GTMGatherInputStream.h" @implementation GTMGatherInputStream + (NSInputStream *)streamWithArray:(NSArray *)dataArray { return [[[self alloc] initWithArray:dataArray] autorelease]; //error on this line } GTMOAuth2Authentication.h:31:11: 'GTMSessionFetcher.h' file not found #if GTM_USE_SESSION_FETCHER #import "GTMSessionFetcher.h" /

Google Api error “Multiple methods named 'initWithArray:' found”

杀马特。学长 韩版系。学妹 提交于 2019-12-28 12:32:10
问题 I am using the google calendar api and I am getting two errors. GTMGatherInputStream.m:25:13: Multiple methods named 'initWithArray:' found #import "GTMGatherInputStream.h" @implementation GTMGatherInputStream + (NSInputStream *)streamWithArray:(NSArray *)dataArray { return [[[self alloc] initWithArray:dataArray] autorelease]; //error on this line } GTMOAuth2Authentication.h:31:11: 'GTMSessionFetcher.h' file not found #if GTM_USE_SESSION_FETCHER #import "GTMSessionFetcher.h" /

Changed +load method order in Xcode 7

社会主义新天地 提交于 2019-12-28 02:56:06
问题 I found out that Xcode 7 (Version 7.0 (7A220)) changed the order in which +load methods for classes and categories are called during unit tests. If a category belonging to the test target implements a +load method, it is now called at the end, when instances of the class might've already been created and used. I have an AppDelegate , which implements +load method. The AppDelegate.m file also contains AppDelegate (MainModule) category. Additionally, there is a unit test file

SequenceType Generator Generic Swift

寵の児 提交于 2019-12-25 06:12:20
问题 I'm having some issues trying to run this code, I found couple examples using the same code but I get compiler error Undefined symbols for architecture arm64: "ExpSwift.SearchResults.generate () -> Swift.IndexingGenerator<[A]>", referenced from: ExpSwift_Example.ViewController.(viewDidLoad () -> ()).(closure #1).(closure #3) in ViewController.o ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation) here is my code class

UIView do not react on Apple Pencil

╄→гoц情女王★ 提交于 2019-12-25 04:34:21
问题 In my app some of UIView s don't react on Apple Pencil. When I make touch by finger, all works fine. I supposed that this might be caused by adding new property type in iOS 9. And I tried to change the type of touches: touch.type = UITouchTypeDirect; But this is readonly property. Does exist any way to make equal touch by finger and touch by Apple Pencil? How do I make my app react on Apple Pencil? 回答1: UITouch class determines whether the touch is made by a stylus or by a finger, as stylus