xcode7

2016 Icon Size and Names?

蹲街弑〆低调 提交于 2019-12-13 07:09:36
问题 What is the current list of Icon Sizes and Names? Using Xcode 7 Example Launch set: iPhone3g : 320 x 480 iPhone4/4s : 640 x 960 iPhone5/5s : 640 x 1136 iPhone6 : 750 x 1334 iPhone 6plus : 1242 x 2208 ------------------------------- iPhone3g : 'Default.png' iPhone4/4s : 'Default@2x.png' iPhone5/5s : 'Default-568h@2x.png' iPhone6 : 'Default-667h@2x.png' iPhone6plus : 'Default-736h@3x.png' 回答1: Here is a matrix of the sizes from Apple. Update: The link is gone, but a copy is available here -

CocoaPods 1.0.1 Redefinition of 'XYZ', Redefinition of enumerator 'ABC', Duplicate interface definition for 'MNO'

回眸只為那壹抹淺笑 提交于 2019-12-13 06:14:04
问题 I am upgrading CocoaPods (0.39.0) to latest version (1.0.1) and moving some directly integrated frameworks (copied in the main project instead of using CocoaPods-spec). I am using XCode (7.2.1). Following is the podfile that is used with CocoaPods 1.0.1: platform :ios, '8.0' target 'ABC-v2' do # use_framework is required for dynamic frameworks integration. use_frameworks! pod 'SSKeychain', '~>1' pod 'Mantle', '~>1' pod 'GoogleAPIClient/Drive', '~>1' pod 'GTMOAuth2', '~>1' pod

Gmail API iOS in Xcode 7, Swift 2

浪子不回头ぞ 提交于 2019-12-13 04:12:05
问题 I am following Google's tutorial https://developers.google.com/gmail/api/quickstart/ios?ver=swift to create a simple Swift project but compiler throws below error. Is this due to some changes in Xcode 7,Swift 2 ? Any idea how to fix it Undefined symbols for architecture arm64: "_OBJC_METACLASS_$_GTLService", referenced from: _OBJC_METACLASS_$_GTLServiceGmail in GTLGmail_Sources.o (maybe you meant: _OBJC_METACLASS_$_GTLServiceGmail) "_OBJC_CLASS_$_GTMOAuth2ViewControllerTouch", referenced from

App Transport Security issue

情到浓时终转凉″ 提交于 2019-12-13 03:44:36
问题 I'm running xcode 7.2 with latest iOS SDK (9.2). The Apple document here regarding to the options which will enable http request to be allowed by ATS on specific domain no longer work. Please see attached images: Even though I disable ATS by delete Exception Domains key & set NSAllowsArbitraryLoads to YES . The request still be blocked!? Any idea? 回答1: just add these lines in your .plist <key>NSAppTransportSecurity</key> <dict> <key>NSAllowsArbitraryLoads</key><true/> </dict> 回答2: From Apple

Compiler error regarding Boost file ONLY when trying to use Instruments in Xcode 7.1

不打扰是莪最后的温柔 提交于 2019-12-13 02:58:20
问题 I get a Boost circular buffer file not found issue when trying to profile my C++ code in Xcode 7.1 but no such error when running the code normally. Do I need to pass some parameters to the Profile section in Edit Scheme ? EDIT: I should add that in the same project #include <boost/lexical_cast.hpp> doesn't give an error! 回答1: It seems Instruments always uses the latest SDK, even when the main project doesn't. I solved the issue by including boost framework in the proper place within latest

Unable to connect Firebase to my Xcode swift app?

旧巷老猫 提交于 2019-12-13 02:14:38
问题 I followed all kinds of tutorials and tried different things, but no help. I successfully installed cocoaPods via Terminal and initialised a pod file. After figuring out how to solve "import Firebase error", now I have difficulties with simple operations like trying to write data into database. Xcode error when trying to write data My pod file 回答1: The new Firebase SDK 3.2.0 has several breaking changes compared to the old version 2.x, therefore the old Quick Start guide is completely

unable to boot iOS simulator Xcode 7

孤街醉人 提交于 2019-12-13 00:45:51
问题 I know this is repetitive question,but i tried all ways but it is not working. I have XCode 7 and XCode 7.2 on my machine and whenever I run the code it shows "Unable to boot iOS simulator". I also tried to uninstall Xcode by using below command, sudo /Developer/Library/uninstall-devtools --mode=all But I am getting error "command not found". When I run "which sudo" it shows me below path -> "/usr/bin/sudo" Am I missing anything? 回答1: I tried a lot but didn't succeed. Meanwhile I upgraded my

Xcode 7 SpriteKit Error with Blocks

醉酒当歌 提交于 2019-12-13 00:28:59
问题 Does anybody know why this won't work anymore in Xcode 7 GM? I have debugged and verified, but even though the nodes are appearing on the scene, they no longer pass touch events to parent nodes. Below is a fully working example. If you replace the default GameScene from the "New Sprite Kit Game" you can reproduce it yourself. class GameScene: SKScene { override func didMoveToView(view: SKView) { let card = Card(imageNamed: "card_background_blank") card.name = "Card" let stack = Stack

How to unit-test this custom UITextField in Swift?

别等时光非礼了梦想. 提交于 2019-12-12 22:08:45
问题 I have created a custom UITextField like this import Foundation import UIKit class NoZeroTextField: UITextField, UITextFieldDelegate { required init(coder aDecoder: NSCoder) { super.init(coder: aDecoder) self.delegate = self } func textField(textField: UITextField, shouldChangeCharactersInRange range: NSRange, replacementString string: String) -> Bool { if (string == "0" ) { //ignore input return false } return true } } I am trying to write unit test for the class but the problem is with

Spritekit/Universal images from assets not showing up on iOS 9?

Deadly 提交于 2019-12-12 19:18:56
问题 I made a universal app using SpriteKit and Swift. Users have sent out bug reports on iOS 9 where sprite node images are showing up white/blank. But I haven't been able to reproduce this in the simulator. The images that don't show up are all device-specific in images.xcassets. The images that do show up are the ones that are universal in images.xcassets. What could I do to solve this (besides making them not device-specific) and could this possibly be an XCode/iOS bug? 回答1: Yeah it's a bug