Tag: xcode7

ios 9中的Spotlight扩展

我已经下载Xcode 7testing版,并发现了一种新的扩展types。 在WWDC 2015上没有任何关于它的说法。 这就是所谓的Spotligt扩展 。 当iOS 9中的Spotlight扩展被调用并使用了什么?

自定义TableViewCell内容在ios9 xcode7上不可见

iOS9升级似乎已经打破了我所有的自定义tableviewcell。 他们只显示tableviewcell正确的高度,但里面的所有元素都丢失了。 该布局在iOS 8和iOS 7设备上完美运行。 这是我的故事板的屏幕截图 然而,当它在设备上时,只有背景色出现。 func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell { let cell = tableView.dequeueReusableCellWithIdentifier("DummyCell", forIndexPath: indexPath) as! DummyCell cell.label.text = "DummyLabel" return cell } 有没有人面临与ios 9类似的问题?

XCode 7:xcdatamodeld不存在

更新到XCode 7以支持iOS9后,我有以下build立错误 error: Cannot read bundle contents (Error Domain=NSCocoaErrorDomain Code=260 "The folder “VoIP.xcdatamodeld” doesn't exist. 使用configurationDebug构build项目myTitle的目标myTitle DataModelCompile Build / Products / Debug-iphoneos / myTitle.app / /Users/myself/MyDev/m1/app/VoIP/VoIP/VoIP.xcdatamodeld cd / Users / myself / MyDev / m1 / app / app / iPhone export PATH =“ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin: / bin:/ usr / sbin:/ sbin“/Applications/Xcode.app/Contents/Developer/usr/bin/momc –sdkroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs /iPhoneOS9.0.sdk –iphoneos-deployment-target […]

升级到xcode 7后,无法在设备上运行应用程序

我更新了我的iPhone 6到iOS 9,我也更新Xcode到版本7.0。 当我在模拟器上运行我的项目时,应用程序工作正常。 当我尝试在我的设备上运行应用程序的应用程序崩溃,我看到这一点: dyld`dyld_fatal_error: – > 0x120049088 <+0>:brk#0x3 最初我使用的是cocoapods,并得到了我configuration的每个框架的“Image not found”错误。 我删除了cocoapods,并手动添加了所有的框架,但现在我得到上面的错误。 任何帮助,将不胜感激。 谢谢

在从初始化程序返回之前,不会调用Super.init

我尝试给我的UITableViewCell类一个自定义的initilizer,但我无法弄清楚我做错了什么。 这是我的代码: init(dataObject: [NSManagedObject]!, objectAttributeValues: [String]!,placeholder: String!, segmentedControl: UISegmentedControl?, cellHeight: CGRect, cellWidth: CGRect) { self.dataObject = dataObject self.Placeholder.text = placeholder self.objectAttributeValues = objectAttributeValues if segmentedControl != nil { self.segmentedControl = segmentedControl! didHaveSegmentedControl = true } } required init(coder aDecoder: NSCoder) { fatalError("init(coder:) has not been implemented") } 我试图调用super.init(frame:CGRect(…)),但通过实现这个我得到了另一个错误: 必须调用超类'UITableViewCell'的指定初始值设定项 我能做什么? 万分感谢!

无法自动select一个Xcode项目

当我在正确的目录中input“pod install”时,我总是得到这个 分析依赖关系 [!] Could not automatically select an Xcode project. Specify one in your Podfile like so: project 'path/to/Project.xcodeproj' podfile platform :ios, '8.0' use_frameworks! target 'Posting' do pod 'ALCameraViewController' end 我在可以findPodfile的项目目录中。

Swift不支持SDK'iPhoneSimulator8.4.sdk'

刚更新到Xcode 7.0.1,在禁用SIP的El Capitan(GM)上运行。 而现在每次我尝试编译一个Swift项目,我得到这个错误; <unknown>:0: error: Swift does not support the SDK 'iPhoneSimulator8.4.sdk' Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc failed with exit code 1 我试着编译实际的设备,并得到: <unknown>:0: error: Swift does not support the SDK 'iPhoneOS8.4.sdk' Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc failed with exit code 1 我的部署目标最初设置为8.0,我试图将其设置为9.0,但没有任何区别。 我的基础SDK被设置为最新的iOS(iOS 9.0)。 这是所有我的Swift项目,即使当我创build一个新的项目,我仍然得到这个错误。 它似乎没有影响Objective-C。 有一个想法,我可以这是SIP被禁用的问题吗? 它看起来不像一个权限错误,但我可以看到没有其他原因,为什么这是行不通的。

Swift 2在调用中额外的参数“错误”

您好我正在更新我的项目从Swift Swift2与Xcode 7,我得到这个CoreData错误: Extra argument 'error' in call 在这一行 if coordinator!.addPersistentStoreWithType(NSSQLiteStoreType, configuration: nil, URL: url, options: nil, error: &error) == nil { 编辑 这是我的代码: lazy var persistentStoreCoordinator: NSPersistentStoreCoordinator? = { // The persistent store coordinator for the application. This implementation creates and return a coordinator, having added the store for the application to it. This […]

如何将NSExceptionDomains添加到xcode版本7.0.1的plist?

我想使用Xcode版本7.0.1捆绑一个基于HTML的网站作为iPhone应用程序,一切工作正常,我唯一的问题是,当我在iPhone 4s上testing应用程序,它不会显示通过http访问的图像。 但是,我可以访问另一个提供https访问其图像的网站的图像。 有什么办法可以添加HTTP支持的捆绑? 更新 我添加了一个NSExceptionDomains到我的plist文件,但我仍然有同样的问题 <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>CFBundleDevelopmentRegion</key> <string>English</string> <key>CFBundleDisplayName</key> <string>My Project</string> <key>CFBundleExecutable</key> <string>${EXECUTABLE_NAME}</string> <key>CFBundleIcons</key> <dict/> <key>CFBundleIcons~ipad</key> <dict/> <key>CFBundleIdentifier</key> <string>com.myproject.names</string> <key>CFBundleInfoDictionaryVersion</key> <string>1.0</string> <key>CFBundleName</key> <string>${PRODUCT_NAME}</string> <key>CFBundlePackageType</key> <string>APPL</string> <key>CFBundleShortVersionString</key> <string>1.0.1</string> <key>CFBundleSignature</key> <string>myproject</string> <key>CFBundleVersion</key> <string>1.1</string> <key>LSRequiresIPhoneOS</key> <true/> <key>NSAppTransportSecurity</key> <dict> <key>NSAllowsArbitraryLoads</key> <true/> </dict> <key>UIMainStoryboardFile</key> <string>Main_iPhone</string> <key>UIMainStoryboardFile~ipad</key> <string>Main_iPad</string> […]

由于ld:library找不到-lGoogleAnalyticsServices,Xcode 7编译失败

我一直在努力让我的Xcode项目在过去的几个小时内build立。 我不断收到以下错误: ld:找不到-lGoogleAnalyticsServices的库:clang:error:linker命令失败,退出代码1(使用-v查看调用) 我尝试了几乎所有的东西。 我看到Google开发者网站说,即使尝试了几乎所有可以在StackOverflow和Google上find的关于错误的东西,我都使用了Google Analytics / Google Analytics,但我绝对没有运气。 我昨天升级到XCode 7,一切似乎昨天工作,但今天突然我开始得到这个错误。 如果有人有什么我可以做这个错误,请帮助! 指出我在正确的方向得到它固定将是真棒! 在此先感谢您的帮助。