xcode7

iOS UI Unit Testing (XCode7)

筅森魡賤 提交于 2020-01-05 14:20:15
问题 I'm a bit confused with the new UI Unit Testing scheme that apple released in their XCode7 Beta. I think it's an awesome idea, but I have a couple questions. this is one testing method I have... func testMetricsProperties() { // Used some of the metrics for testing for reference let app = XCUIApplication() app.scrollViews.descendantsMatchingType(.Unknown).containingType(.StaticText, identifier:"rim").childrenMatchingType(.Button).element.tap() app.textFields["_XCUI:Secure"].typeText("") app

Xcode 7 what happens when I disable bitcode for a project?

独自空忆成欢 提交于 2020-01-05 14:15:51
问题 I'm trying to understand what are the implications of disabling bitcode for a project. As far as I understand Apple intends to use it for some behind the scene optimizations for future API changes. However, a lot of the frameworks/Cocoapods that I'm using don't use bitcode, so I had to disable it. Should I try to resolve the issue rather than just disabling bitcode? What are the advantages of shipping a binary with bitcode enabled? What are the implications of disabling bitcode for a project

Xcode 7 what happens when I disable bitcode for a project?

若如初见. 提交于 2020-01-05 14:14:03
问题 I'm trying to understand what are the implications of disabling bitcode for a project. As far as I understand Apple intends to use it for some behind the scene optimizations for future API changes. However, a lot of the frameworks/Cocoapods that I'm using don't use bitcode, so I had to disable it. Should I try to resolve the issue rather than just disabling bitcode? What are the advantages of shipping a binary with bitcode enabled? What are the implications of disabling bitcode for a project

Swift playground with debugger support?

≡放荡痞女 提交于 2020-01-03 19:01:35
问题 Swift playgrounds in Xcode 7 don't seem to support usage of the debugger. This features seems like it would be (extremely) useful ... I've got a playground that exercises code within a framework I'm writing. I'd really love to be able to set a breakpoint on the code within my framework -- and have the debugger stop execution when the breakpoint is hit when the code is executed from a playground. Does anyone know why playgrounds don't currently support this? Is there some fundamental reason

Xcode 7, asset catalog universal device background image support?

橙三吉。 提交于 2020-01-03 08:45:12
问题 I've seen various old posts regarding image sizes, but I can't find anything up-to-date or even know if it's possible with just asset catalog to provide images for all iPad and iPhone screen sizes.? This is the best post I've found, but in Xcode 7 it doesn't show "Retina 4 2x" or the iPhone 6 / 6+ Xcode 6 - xcassets for universal image support In xcode 7 there is a universal option, but the three images don't support all the device sizes. I've seen options where you can provide your own

Swift does not support the SDK 'iPhoneSimulator8.4.sdk'

北城余情 提交于 2020-01-03 08:27:49
问题 Just updated to Xcode 7.0.1, running on El Capitan (GM) with SIP disabled. And now every time I try to compile a Swift project I get this error; <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 I've tried compiling for actual devices as well and get: <unknown>:0: error: Swift does not support the SDK 'iPhoneOS8.4.sdk' Command /Applications

iOS 9 : AVFoundation Export Session is missing audio

人盡茶涼 提交于 2020-01-03 03:48:05
问题 I'm using the below code snipped while merging videos with original audio. It has been working until I upgraded to iOS9. Anyone faced the same issue and any help to resolve would be greatly appreciated. I couldn't find anything after researching whole day. AVAssetTrack *videoTrack = nil; AVAssetTrack *audioTrack = nil; CMTime insertionPoint = kCMTimeZero; if([[url tracksWithMediaType:AVMediaTypeVideo] count] != 0) { videoTrack = [url tracksWithMediaType:AVMediaTypeVideo][0]; } if([[url

Xcode - Authentication failed error when adding repository with SSH auth

流过昼夜 提交于 2020-01-03 03:12:27
问题 I am trying to add repository via Xcode > Settings > Accounts and I am stuck on the proper address. Address of our repo is quite simple: my.domain.com:port/project-name. Authentication via SSH Keys. Could someone help me to understand what's going on here? See screenshot below. By the way running git clone git+ssh://git@my.domain.com:port/project-name works fine. EDIT Running git clone without git+ssh// git clone git@my.domain.cz:2222/project-name or git clone git@my.domain.cz:22/project-name