xcode7

Xcode 7 Launch Screen images dont load properly

无人久伴 提交于 2020-01-01 14:45:07
问题 I am trying to make some different launch screens with Xcode 7 ios9.1 for different iOS devices (iPhone iPad) If you take a look at the following images this is what I've done Here I have made exactly all the images dimensions that it needs and I have filled out all the table with the images. I have made this by right clicking and selecting New iOS Launch Image. Here I have set the launch images from LaunchImage. And here is the launch screen storyboard which I have left it empty. Now, when I

Facebook Login does not return to App with Xcode 7 iOS 9

左心房为你撑大大i 提交于 2020-01-01 10:57:10
问题 I have implemented this method for Facebook Login in the App Delegate using Xcode 7 and it works perfectly: - (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<NSString*, id> *)options { return [[FBSDKApplicationDelegate sharedInstance] application:app openURL:url sourceApplication:options[UIApplicationOpenURLOptionsSourceApplicationKey] annotation:options[UIApplicationOpenURLOptionsAnnotationKey]]; } However, since I need to use Xcode 6 to submit my app to the

Error: SDK “iphonesimulator9.0” Cannot be located

风流意气都作罢 提交于 2020-01-01 09:43:49
问题 I recently updated Xcode to 7.1 And downloaded iOS 8.4 And iOS 9.0 Simulator. When I run xcodebuild -showsdks I get OS X SDKs: OS X 10.11 -sdk macosx10.11 iOS SDKs: iOS 9.1 -sdk iphoneos9.1 iOS Simulator SDKs: Simulator - iOS 9.1 -sdk iphonesimulator9.1 tvOS SDKs: tvOS 9.0 -sdk appletvos9.0 tvOS Simulator SDKs: Simulator - tvOS 9.0 -sdk appletvsimulator9.0 watchOS SDKs: watchOS 2.0 -sdk watchos2.0 watchOS Simulator SDKs: Simulator - watchOS 2.0 -sdk watchsimulator2.0 I want iOS Simulator SDKs

Xcode 7.0 and iOS5 compatilibity

∥☆過路亽.° 提交于 2020-01-01 05:40:12
问题 1) I cant use my iPad with iOS 5.1.1 in XCode 7.0 (7A220). In "Devices" window: "Unsupported device model: "iPad is of a model that is not supported by this version of Xcode..." 2) Is impossible to upload iOS 5 simulator to Xcode 7; the oldest available is iOS 6. What can I do to work this iPad withXcode 7? 回答1: XCode hasn't supported iOS 5 simulation for longer than that. Check my post on the thread Install ios 5 simulator to xcode 5.1? to see how I ran iOS 5 simulators on a mac with recent

Embed frameworks inside a framework iOS

本小妞迷上赌 提交于 2020-01-01 05:12:05
问题 I have a project containing another target(framework) which is a dependency of the main project. That framework requires it's own frameworks, so I've added them using carthage. The project compiles and runs fine on simulator, however I'm getting the following error when running it on a physical device: dyld: Library not loaded: @rpath/Subframework.framework/Subframework Referenced from: /private/var/mobile/Containers/Bundle/Application/LONG-ID/MyApp.app/Frameworks/MyAppSDK.framework/MyAppSDK

Command /Applications/Xcode-beta.app/Contents/Developer/usr/bin/actool failed with exit code 255

谁说我不能喝 提交于 2020-01-01 04:22:10
问题 It happens in new Xcode7 beta: CompileAssetCatalog /Users/admin/Library/Developer/Xcode/DerivedData/InstaAd-ddgdnbxlpxipirebpndfmgrxspel/Build/Products/Debug-iphoneos/InstaAd.app InstaAd/Images.xcassets cd /Users/admin/Documents/git/InstaAdIOS/InstaAd export PATH="/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode-beta.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin" /Applications/Xcode-beta.app

Custom Unwind Segue for iOS 8 and iOS 9

僤鯓⒐⒋嵵緔 提交于 2020-01-01 03:33:10
问题 My question is, how do I get the following custom unwind segue to work on a device with a version prior to iOS 9 as well as on a device running iOS 9? I have a Custom Segue showing a view controller, and then have a corresponding Custom Unwind Segue. This code has worked fine in iOS 8, and is implemented by creating subclasses of UIStoryboardSegue and implementing the perform method. Then I override the following method in my custom Navigation Controller: - (UIStoryboardSegue *)

Why is a closing brace showing no code coverage?

一个人想着一个人 提交于 2020-01-01 02:29:30
问题 I've got a Swift function for which Xcode is showing 0 passes in code coverage. The line is a closing brace (highlighted in red below). Is this a bug in Xcode? If not, what condition do I need to hit to run that line? I thought I was covering all paths through this method. 回答1: xcode reports include measurements for ending brackets, which is not typically desired. There is nothing you can do in configuration to fix this (as far as I know). (FD I work at Codecov) You can use Codecov, a hosted

Xcode fix-it shortcut

筅森魡賤 提交于 2020-01-01 01:13:27
问题 I am wondering is there any shortcut or hotkey that can apply the fix-it suggestion from Xcode? (Xcode 7) In Android Studio, we can just use ctrl+enter to apply the correction. Is there anything similar to that in Xcode? some ref: https://swifteducation.github.io/assets/pdfs/XcodeKeyboardShortcuts.pdf 回答1: I am aware of two shortcuts. Ctrl + Cmd + ' - auto fix next error Ctrl + Cmd + " - auto fix prev error Enjoy! 回答2: In Xcode 8, this appears to now be ⌃⌥⌘F or Ctrl + Alt + Cmd + F If you

Xcode fix-it shortcut

ぃ、小莉子 提交于 2020-01-01 01:13:20
问题 I am wondering is there any shortcut or hotkey that can apply the fix-it suggestion from Xcode? (Xcode 7) In Android Studio, we can just use ctrl+enter to apply the correction. Is there anything similar to that in Xcode? some ref: https://swifteducation.github.io/assets/pdfs/XcodeKeyboardShortcuts.pdf 回答1: I am aware of two shortcuts. Ctrl + Cmd + ' - auto fix next error Ctrl + Cmd + " - auto fix prev error Enjoy! 回答2: In Xcode 8, this appears to now be ⌃⌥⌘F or Ctrl + Alt + Cmd + F If you