Tag: xcode6

XCode6 GoldMaster提交生成失败,错误

当我提交构build到AppStore时,我看到错误: 错误ITMS-4088:在SofwareAssets处找不到与apple_id: *无关的软件 错误ITMS-4238:“冗余二进制上载。在软件资源/ PreReleaseSoftwareAsset上已经存在一个针对”3.0“版本的二进制上载,构build版本为”3.0“。 有谁知道我该怎么做才能解决这个问题?

的UIWindow? 没有名为bounds的成员

我试图更新PKHUD( https://github.com/pkluz/PKHUD )与Xcode 6testing版5一起工作,几乎通过除了一个微小的细节: internal class Window: UIWindow { required internal init(coder aDecoder: NSCoder!) { super.init(coder: aDecoder) } internal let frameView: FrameView internal init(frameView: FrameView = FrameView()) { self.frameView = frameView // this is the line that bombs super.init(frame: UIApplication.sharedApplication().delegate.window!.bounds) rootViewController = WindowRootViewController() windowLevel = UIWindowLevelNormal + 1.0 backgroundColor = UIColor.clearColor() addSubview(backgroundView) addSubview(frameView) } // […]

字体描述符在iOS 8中返回零

下面的代码可以在iOS 7中正常工作,但是不会在iOS 8中返回粗体或斜体字体。对于Helvetica Neue来说没问题,但是对Arial字体不起作用。 UIFontDescriptor *descriptor1 = [UIFontDescriptor fontDescriptorWithFontAttributes:@{UIFontDescriptorFamilyAttribute: @"Arial"}]; UIFontDescriptor* boldFontDescriptor1 = [descriptor1 fontDescriptorWithSymbolicTraits:UIFontDescriptorTraitBold]; UIFont* font1 = [UIFont fontWithDescriptor:boldFontDescriptor1 size:16.0]; [self.lblArialB setFont:font1]; 在设备和模拟器上testing,仍然是一样的错误。

Swift:如何从分段控件中删除边框

我如何去除xcode中的分段控件的外部边界? 我已经把divider图像设置为我想要的,但现在要遵循我的应用程序的模拟,我需要有一个没有外边框的分段控制。

iPhone6状态栏显示放大的应用程序,但不在主屏幕上

经过一些初步testing,我们在iPhone6上的应用程序,我们看到,状态栏(也许是整个应用程序)显示放大的大小。 当我说缩放时,我指的是放大的桌面设置与标准。 该应用程序是使用旧的故事板types,而不是与大小类的新的。 我的App: 主屏幕:

致命错误:NSArray元素无法匹配Swift数组元素types

突然我开始得到运行时错误, fatal error: NSArray element failed to match the Swift Array Element type 我宣布我的arrays为, var myArray : [CUSTOM_CLASS] = [CUSTOM_CLASS]() 现在,在我的服务器响应成功块中, self.myArray = dicResponse["data"]! as Array println(self.myArray) // FATAL ERROR HERE 升级到Xcode6 Beta6之前,这是完美的 FYI : dicResponse["data"]! // is verified as valid (抱歉指向错误的地方!) 解决了 : 不知道,但我做了一些改变,它的工作原理, var myArray = [AnyObject]() self.myArray = dicResponse["data"]! as [AnyObject]

Apple Watchkit模拟器问题:SPErrorInvalidBundleNoGizmoBinaryMessage

当我打开我现有的Watchkit应用程序(Xcode 6.2),它编译正确,模拟器启动(iPhone + Watch),然后是有意义的错误: 启动'xxx Watchkit扩展'错误SPErrorInValidBundleNoGizmoBinaryMessage 我有这个问题与所有模拟器(iPhone 5 / 5S / 6/6 + – 38毫米/ 42毫米) 任何想法是什么问题可以? 这似乎是由于某种原因,应用程序不希望在模拟器上运行,即使它曾经。 与其他Watchkit示例应用程序一样,包含在同一项目中的iPhone应用程序也运行。

Xcode创build错误的IPA文件夹结构

一旦我们取消归档IPA文件,我们通常Payload “ Payload ”文件夹作为root用户。 但是,突然Xcode已经开始以root身份创build具有“ Applications ”文件夹的IPA。 因此,MDM无法find文件。 有没有人遇到类似的问题? 我们正在运行Xcode版本6.1。

未find外部框架File / File.h(Parse / Parse.h)文件

所以每次我更新我的应用程序,Xcode声称不能find一个特定的外部框架,即使它在那里。 这又发生在Xcode 6和我通常的方法(我很缺乏经验,所以这些基本上涉及点击和打字的东西,直到发生什么事情(我夸大,但不是太多))不起作用。 我得到一个Lexical or Preprocessor Issue错误,说'Parse/Parse.h' file not found.' 但是这里是它在项目中的截图,并添加到库中: 我也在“ld:warning:directory not found for option”find了最高的答案,但仍然没有任何结果。 任何想法该怎么办? 任何想法呢? 我在这里把头发撕掉

Swift – 分段控制 – 切换多个视图

到目前为止,我仍然无法确定如何在一个视图控制器中切换多个视图。 我的故事板是这样的。 现在我想在视图控制器中embedded两个视图。 我的代码分段控制到目前为止在一个视图控制器中切换两个视图。 import UIKit class PopularHistoryViewController: UIViewController { @IBOutlet weak var segmentedControl: UISegmentedControl! @IBAction func indexChanged(sender: UISegmentedControl) { switch segmentedControl.selectedSegmentIndex { case 0: NSLog("Popular selected") //show popular view case 1: NSLog("History selected") //show history view default: break; } } override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view. […]