xcode6

How to integrate latest SDWebImage API in my Swift based project?

对着背影说爱祢 提交于 2019-12-18 19:33:32
问题 I have used SDWebImage with Objective C and it worked great for me but now I am learning Swift and trying to integrate the latest version of the API but I am stucking at every step as API is in Objective C and there are no steps mentioned to use the API with Swift. I read the documents and created the bridge header file and included the required file like below: #ifndef MyProject_Bridging_Header_h #define MyProject_Bridging_Header_h #import <SDWebImage/UIImageView+WebCache.h> #import

App installation failed

拟墨画扇 提交于 2019-12-18 18:58:14
问题 In Xcode 6 Beta 5 , when I attempt to run my app after building, I receive an error dialog that says: App installation failed Could not inspect the application package. This happens on iOS 8 Beta 5 , but not on iOS 7.1.1 ! I have not tested anything else. Any ideas for how I can fix this? 回答1: I had this problem. Solution is to uninstall the app. Then clean project and then install app. 回答2: I solved it by uninstalling(removing) the application from device manually and Run xcode application

iOS ipa codesign on XCode 6.1 & Yosemite

廉价感情. 提交于 2019-12-18 18:51:14
问题 I was used to sign my app with the following command codesign --resource-rules=ResourceRules.plist -f -s "SIGNER_NAME" MYAPP.app After installing Yosemite and XCode 6.1 it gives the following warning: Warning: --resource-rules has been deprecated in Mac OS X >= 10.10! So I tried to remove the "--resource-rules" but now it gives the following (blocking) error: invalid resource specification rule(s) Is there any right way to codesign ? 回答1: Over on this post They answer your question. That post

Can't access class from custom dynamic framework (Swift)

旧时模样 提交于 2019-12-18 18:42:56
问题 My test dynamic iOS framework XYZFramework consists of a single class XYZ . However, even after declaring: import XYZFramework I am unable to access this class, with any attempts yielding the following error: Use of unresolved identifier 'XYZ' How do I resolve this issue? 回答1: Found the answer. I had to prefix my class declaration with the public modifier. So this: class XYZ { } became: public class XYZ { } And, as always, trashing the ~/Library/Developer/Xcode/DerivedData folder fixed any

The iOS 8.1 simulator runtime is not available error in Xcode 6.1

孤街浪徒 提交于 2019-12-18 18:34:04
问题 I was using Xcode 6.0.1 till now and things were fine. Then I upgraded to Xcode 6.1 and tried running my application(which has a deployment target of 7.0) in iPhone 6 simulator. But it shows an error message : The iOS 8.1 simulator runtime is not available . Download the iOS 8.1 simulator runtime from the Downloads section in Xcode's Preferences I manually deleted the earlier Xcode (6.0.1) and installed 6.1 from a dmg. I tried searching across but couldn't find related stuff. Any help would

How to view value of Swift “let” constant in Xcode 6 debugger

落爺英雄遲暮 提交于 2019-12-18 16:54:34
问题 When I'm stopped in the debugger in Xcode 6, how can I view the value of a local Swift constant declared with let ? If I create a brand new Swift project in Xcode 6 and add the following two lines to application(_:didFinishLaunchingWithOptions:) in the app delegate: let someConstant = 5 var someVariable = 6 …then run the app and break immediately after these lines, this is what I see in the variables view of the debugger: Why does the variable display its value, while the constant does not?

Obscure Xcode build error: “The file “myapp-SBPartialInfo.plist” couldn’t be opened because there is no such file.”

吃可爱长大的小学妹 提交于 2019-12-18 16:52:41
问题 I'm getting the following error toward the end of the build: error: could not read data from '/Users/myname/Library/Developer/Xcode/DerivedData/myapp-ftieubjjfkuwyrhhleghfevbhxuu/Build/Intermediates/myapp.build/Debug-iphoneos/myapp.build/myapp-SBPartialInfo.plist': The file “myapp-SBPartialInfo.plist” couldn’t be opened because there is no such file. The only thing I can think of is that it is a result of having aborted a build an hour or so ago. I have cleaned, quit Xcode, rebooted my

AVSpeechUtterance - Swift - initializing with a phrase

让人想犯罪 __ 提交于 2019-12-18 16:48:21
问题 So I'm just trying to use the AVSpeechSynthesizer with Swift. I cannot figure out how to set the phrase for the AVSpeechUtterance. @IBAction func buttonSpeakClicked(sender:UIButton) { var mySpeechSynthesizer:AVSpeechSynthesizer = AVSpeechSynthesizer() var myString:String = "This is the phrase to say" var mySpeechUtterance:AVSpeechUtterance = AVSpeechUtterance(string:myString) println("\(mySpeechUtterance.speechString)") println("My string - \(myString)") mySpeechSynthesizer .speakUtterance

UIScrollView not scrolling after Unchecking “Adjust scroll view insets” xcode 6

戏子无情 提交于 2019-12-18 15:53:22
问题 In my app, I tried to use scroll view. But I encountered an issue where the scroll view added space at the top and bottom, as mentioned in the following question. ScrollView adds space at the top of subview xcode 6 Swift I was asked to uncheck "Adjust scroll view insets" of the containing view controller. Doing that solved my purpose. But the scroll view isn't scrolling anymore. I'm not able to scroll to the views which are appearing at the bottom. May I know what I need to do, to make it

ld: 1 duplicate symbol for architecture x86_64

丶灬走出姿态 提交于 2019-12-18 14:52:56
问题 I'm very very new to C and C++ programming, and have very little experience in Software Programming (my background is Web Based) But I'm trying to experiment with C / C++ and Xcode... So I've found this code (and many similar variations online): #include <stdio.h> int main() { printf ("Test"); return 0; } Yet when I come to compile it in Xcode I get the following error: > duplicate symbol _main in: > /Users/thomas/Library/Developer/Xcode/DerivedData/test-etqojvxbxhxjqeggdzkbfufvbeza/Build