xcode7

Who's creating the files “/private/var/tmp/Untitled-*.uicatalog”?

断了今生、忘了曾经 提交于 2019-12-08 16:21:38
问题 I was investigating why a TeamCity build-agent was running out of disk, and found over 11,000 files in /private/var/tmp , all named along the lines of Untitled-<random-unique>.uicatalog . Each file is at least 0.6MB. The total disk footprint is on the order of 4GB. The files dated back several months, so they survived reboots. Who is creating them? 回答1: Who is creating them? Xcode creates these when compiling an xcassets catalog that has at least one image in it. Can I delete them? AFAIK, yes

Binary operator '&&' cannot be applied to two Bool operands [duplicate]

丶灬走出姿态 提交于 2019-12-08 15:40:46
问题 This question already has answers here : Swift 2 migration saveContext() in appDelegate (2 answers) Closed 4 years ago . I recently updated Xcode to the new 7.0 beta. I did the migration with the assistant but there are a few more issues. func saveContext () { if let moc = self.managedObjectContext { var error: NSError? = nil if moc.hasChanges && !moc.save() { NSLog("Unresolved error \(error), \(error!.userInfo)") abort() } } } On line 4 there are 4 issues: the first one is: Binary operator '

Why is “Enable Address Sanitizer” disabled in Xcode 7?

喜夏-厌秋 提交于 2019-12-08 15:38:27
问题 I read about the Runtime Sanitization in the Apple docs in the new Xcode 7, so I looked for it, and found that it's disabled. I'm using Xcode 7 GM seed. When I go into the Run action of the scheme > Diagnostics tab, the Enable Address Sanitizer option is disabled: There is some explanation about how other options are disbled, but no mention of why the sanitization option would be disabled: Some diagnostic tools can be used in combination with others; the options available on the Diagnostics

Xcode 7 build failed due to ld: library not found for -lGoogleAnalyticsServices

血红的双手。 提交于 2019-12-08 15:36:33
问题 I have been struggling to get my xcode project to build for the last couple hours. I keep getting the following error: ld: library not found for -lGoogleAnalyticsServices clang: error: linker command failed with exit code 1 (use -v to see invocation) I have tried almost everything. I saw that the Google Developers website said to use pod 'Google/Analytics', even after trying almost everything I could find on StackOverflow and Google regarding the error, I have had absolutely no luck. I

Downcast from UITabBarItem? to UITabBarItem only unwraps optionals; did you mean to use '!'

匆匆过客 提交于 2019-12-08 12:56:32
问题 My code was working well in Xcode 6. But, after updating to Xcode 7 I got nearly 20 errors and 50 warnings.This might be some syntax change in Swift 2 Solved all those but can't figure out this one : Downcast from UITabBarItem? to UITabBarItem only unwraps optionals; did you mean to use '!' let tabItems = tabBar.items as! [UITabBarItem] // Error in this line for (index, value) in enumerate(tabItems) { var imageName = imageNames[index] value.image = UIImage(named: imageName) value.imageInsets

Valid Provisioning Profile not working for git repository

佐手、 提交于 2019-12-08 11:54:15
问题 I just created a provisioning profile(distribution) which includes features like push notifications etc... the flow went smoothly and app accepted by apple, every thing is working fine in the production. As app going forward the features increased and going complex coding in the following versions so for safe side i thought to maintain git repository for the app. Git implementation is done and new features added in the development. Coming to testing part everything working fine including push

Swift can't retrieve images from parse.com

雨燕双飞 提交于 2019-12-08 11:13:21
问题 I was using 6.4 of Xcode and it was working fine but when I updated to Xcode 7 it seems like query isn't working for photos. I'm getting username on table view but the images not showing I get this error when testing on simulator iPhone 5: App Transport Security has blocked a cleartext HTTP (http://) resource load since it is insecure. Temporary exceptions can be configured via your app's Info.plist file. And when I test it on iPhone 6 I got this error : fatal error: unexpectedly found nil

Playing audio in Xcode 7 / Swift 2 Not Working

南笙酒味 提交于 2019-12-08 09:39:51
问题 I am currently on Xcode 7 beta 4 with Swift 2, trying to play audio. I do not get any error in my code, but when I press the play button, the audio does not play. I cant figure out what is wrong. import UIKit import AVFoundation class VesuviusViewController: UIViewController { @IBOutlet weak var PausePlay: UIButton! func playVes() { do { _ = try AVAudioPlayer(contentsOfURL: NSURL(fileURLWithPath: NSBundle.mainBundle().pathForResource("Ves", ofType: "m4a")!)) } catch { print("Error") } }

iOS Core Data: Convert result of fetch request to an array

有些话、适合烂在心里 提交于 2019-12-08 08:17:29
问题 I'm trying to put the results of a fetch request into an array. My code: let appDelegate = UIApplication.sharedApplication().delegate as! AppDelegate let managedContext = appDelegate.managedObjectContext let fetchRequest = NSFetchRequest(entityName: "CLIENTS") var mobClients = [NSManagedObject]() var arrayAllPhoneNumbers = [String]() do { let results = try managedContext.executeFetchRequest(fetchRequest) mobClients = results as! [NSManagedObject] for clientPhoneNumber in mobClients { let

Files in Xcode not working (names in red)

牧云@^-^@ 提交于 2019-12-08 06:56:42
问题 I renamed my app folder to try and change the name of the app because it didn't work in the project navigator and when I did so, all files came up in red. I have tried to fix it by renaming the files back to how they were but it still doesn't work. Any help would be greatly appreciated. Link to dropbox: https://www.dropbox.com/s/omvo0saff0z9ncc/TicketekApp%202.zip?dl=0 回答1: If files marked in red, they are "not found" by Xcode. You either moved or deleted them within File Finder, outside