Tag: xcode7 beta2

xCode 7 + Swift 2.0中的编译错误

由于我已经安装了xCode 7 beta2 + Swift 2.0,在我的应用程序中出现了一些错误。 例如,我收到以下错误 “无法使用types为”(EKEntityType,completion:(Bool,NSError!) – > _“)的参数列表调用'requestAccessToEntityType' 在这部分代码中: eventStore.requestAccessToEntityType(EKEntityType.Event, completion: {(granted: Bool, error:NSError!) in if !granted { print("Access to store not granted") } }) 另外这个错误: 无法用types为“(NSDate,endDate:NSDate,calendar:[AnyObject])”的参数列表调用“predicateForEventsWithStartDate” 在这部分代码中: calendarsPrueba.addObject(calendarWithName("US Holidays")!) var predicate2 = eventStore.predicateForEventsWithStartDate(startDate, endDate: endDate, calendars: calendarsPrueba as [AnyObject]) 有人知道如何解决这个问题? 这里没有苹果文档

Xcode无法看到通过Cocoapods添加的对象

我有一个podfile定义与下面的豆荚。 platform :ios, '8.0' use_frameworks! target 'LifeStream' do pod 'SSKeychain' pod 'LiveSDK' pod 'Alamofire', :git => 'https://github.com/Alamofire/Alamofire.git', :branch => 'swift-2.0' end 我安装了豆荚,打开了我的工作区。 我发现Alamofire的任何用法工作正常,由于它的Swift 2版本导入项目作为框架。 当我尝试使用SSKeychain类但是,我收到一个 使用未parsing的标识符“SSKeychain” 我也尝试在LiveSDK中使用任何类。 我的项目根目录中有一个桥头,并且项目被configuration为使用它。 #ifndef Header_h #define Header_h #import "SSKeychain/SSKeychain.h" #import "LiveSDK/LiveConnectClient.h" #endif /* Header_h */ 如果我更改#import #import "SSKeychain/SSKeychain.h" 至 #import "SSKeychain.h" Xcode无法编译,因为它无法find该文件。 所以我假设网桥标题正在工作,因为我的网桥标题现在build立的方式不会产生任何编译器错误,由于没有find标题。 桥头 框架searchpath 我还将我的项目根目录添加到框架searchpath。 链接的框架 最后,我也将所有的框架链接到项目中。 我是否错过了我的设置? 我现在还没有能够让Cocoapods在我的项目上工作近一个星期。 […]

Xcode 7testing版2:LaunchScreen.storyboard无法打开文档

我在两个不同的Mac(iMac和Mac Book pro)上出现这个错误。 不知道为什么人们不能重现它,但我需要一些帮助。 我在运行OS X Yosemite 10.10.4的Mac上运行Xcode 7 beta 2 (15年6月23日)。 甚至不能编译和运行我的项目.. 我从创build菜单创build了一个单一的视图应用程序项目,就是这样。 编辑: 我试图删除并重新添加故事板文件(也打开Main.storyboard cannote),我仍然得到相同的消息。 这是崩溃报告: Process: com.apple.CoreSimulator.CoreSimulatorService [2316] Path: /Applications/Xcode-beta.app/Contents/Developer/Library/PrivateFrameworks/CoreSimulator.framework/Versions/A/XPCServices/com.apple.CoreSimulator.CoreSimulatorService.xpc/Contents/MacOS/com.apple.CoreSimulator.CoreSimulatorService Identifier: com.apple.CoreSimulator.CoreSimulatorService Version: ??? Code Type: X86-64 (Native) Parent Process: ??? [1] Responsible: com.apple.CoreSimulator.CoreSimulatorService [2316] User ID: 489132888 Date/Time: 2015-07-08 11:47:46.022 +0100 OS Version: Mac OS X 10.10.4 (14E11f) Report Version: 11 […]

在Xcode 7 beta 2上“没有这样的模块”

我看到了这个问题 ,但我仍然无法导入框架,并在Xcode 7 beta 2(7A121l)中使用它。 所以目前我正试图通过迦太基使用结果 。 将它添加到构build阶段/链接二进制与二进制和embedded框架我能够成功编译,但我得到一个错误说明(是的,它说成功,然后错误:S): No such module 'Result' 关于import: import Result func serverRequest() -> Result<String, NSError> { … } 编译能够运行和编译,但我不能cmd +单击结果,例如。 编辑1:在Xcode 6.3.2上按预期工作。 编辑2:打开雷达:21588771

ld:框架没有findparsingXcode 7testing版

我成功地安装和使用Parse框架与我的新项目,但我不能与“模板项目”。 该模板只是Appcoda的一个幻灯片菜单 你可以在这里下载这个项目。 我有这个错误: ld: framework not found Parse clang: error: linker command failed with exit code 1 (use -v to see invocation) 和Bolts一样。 我不明白是什么问题,最初的项目只是一些视图控制器… 当我写代码“import parse”时,错误信息是: No such module 'Parse' 我尝试拖放框架,并添加“链接二进制库”框架。 PS:我正在使用Xcode 7testing版,并且在testing版1和2上尝试过同样的问题。

如何在Xcode 7.0 beta 2中运行iOS 7.1 Simulator?

我已经安装了最新的Xcode 7 beta 2版本,当我尝试在iOS 7.1 Simulator中运行应用程序时,它提供了以下错误消息: iOS 7.1模拟器运行时不可用。 无法打开liblaunch_sim.dylib。 尝试重新安装Xcode或模拟器运行时。 你能不能让我知道如何解决这个错误?