xcode6

Running tests on Xcode 6 and device

和自甴很熟 提交于 2019-12-18 08:56:37
问题 I am trying to run unit tests on Xcode 6 if I run them on the simulator (and 7.1 at that) they run fine other conditions yield this message: 2014-10-10 01:39:56.190 MyApp[493:173988] Error loading /private/var/mobile/Containers/Data/Application/A6C42E86-0147-4447-A605- FF864C5BD0F7/tmp/MyAppTests.xctest/MyAppTests: dlopen(/private/var/mobile/Containers/Data/Application/A6C42E86-0147-4447-A605- FF864C5BD0F7/tmp/MyAppTests.xctest/MyAppTests, 262): no suitable image found. Did find: /private/var

XCode6: Receiving error “Include of non-modular header inside framework module”

*爱你&永不变心* 提交于 2019-12-18 07:43:09
问题 I have an iOS app that consists of an app, a bunch of my custom frameworks, and a bunch of third party framweorks: App MyFramework1 MyFramework2 AFNetworking.framework Mantle.framework .. I get the error "Include of non-modular header inside framework module" with the following structure: App/AppDelegate.m #import <MyFramework2/MyFramework2.h> MyFramework2/MyFramework2.h #import "MyClass.h" MyClass.h #import <Mantle/Mantle.h> <-- Error happens here MyFramework2 builds by itself . Trying to

Xcode 6, Swift - read standard input (console) to string [closed]

别来无恙 提交于 2019-12-18 05:54:51
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . I am new to Objective-C and XCode and I'm trying to learn something new. Is there any way to read string from stdin using swift ? Something like cin in C++ ? 回答1: Just as with Objective-C, you can use NSFileHandle : let standardInput = NSFileHandle.fileHandleWithStandardInput() let input = standardInput

How to make User logout from twitter fabric ios

核能气质少年 提交于 2019-12-18 05:54:33
问题 I have made a basic app using Twitter's fabric that allows user to tweet within my app and Provide Login With Twitter.Every things works a I Wanted. How my app Works If the user doesn't logged in to twitter my app allows him to login and if he is login then directly allows him to tweet. Now the Big Part Comes As I saw in many Apps I Can Remove my signed account from the app.And I am not able to get any method that help me to achieve this. I want to allow user to logout from twitter within my

File couldn't be opened because you don't have permission

北城余情 提交于 2019-12-18 05:43:50
问题 I keep getting the error: The file "Blah" couldn't be opened because you do not have permission to view it. I tried the top 5 answers in this question - "The file "MyApp.app" couldn't be opened because you don't have permission to view it" when running app in Xcode 6 Beta 4 But they do not work. Note: I deleted the debug and release from the Test in the Build Settings and cleared the derived data multiple times. info.plist 回答1: Go to Build Settings -> Build Options. Then change the value of

Xcode6, iOS8 and (void)layoutSubviews

爷,独闯天下 提交于 2019-12-18 04:52:47
问题 I have custom UILabel which works fine on iOS6 and iOS7. But on iOS8 this label's (void)layoutSubviews method never get called. I create this label with initWithFrame, so this method should be called - and it's called on another iOS versions. What happens with autoLayout system in iOS8? 回答1: I just want to add this answer because the question title may lead a lot of ppl here with similar issues (like me). With iOS 8 to 8.0.2 LayoutSubviews calls are unreliable. They may not be called ever or

Did the way how to globally import files change in Xcode 6 / iOS 8?

被刻印的时光 ゝ 提交于 2019-12-18 04:47:08
问题 I used to do my global imports (i.e. imports that would be visible to all source files in my Xcode project) in the file AppName -prefix.pch . However, now in an Xcode 6 (and iOS 8) environment, after having created a new project, this file is not automatically generated any more. My question is how to properly do global imports in Xcode 6? Can I just create my own AppName -prefix.pch and use this one eventually? Note: When using Cocoapods , a file called Pods- AppName -Bolts-prefix.pch is

Implement CoreData into an existing project using Swift

非 Y 不嫁゛ 提交于 2019-12-18 03:55:40
问题 I am currently using Xcode 6 beta 7 and decided I needed CoreData after already creating my project. I have looked at some of the questions already asking this for objective C along with watching videos on the subject but I seem to be getting the same error. As for my usage of the CoreData framework itself, I am pretty sure it is correct as I created another empty project (with the CoreData box checked) and followed the same implementation and it worked like a charm but there may be something

New Xcode 6 Project - How to run in the iOS 7 Simulator

*爱你&永不变心* 提交于 2019-12-17 23:26:38
问题 I try to create a new project with Xcode 6 that also runs on iOS 7. I've created a new project and then did the following: Set Project's iOS Deployment Target to 7.0 Referenced a Launch Image Source in the Assets Still, when trying to run on an iOS 7 simulator, the following error is shown: "iPhone 5s not available. Please select a different device and try again." (My older projects run fine on iOS 7 simulators.) How I can make a new project run in the iOS 7 simulator? EDIT The output of

Xcode - Run Simulator with older iOS Version

纵然是瞬间 提交于 2019-12-17 22:47:09
问题 Hey I have done a lot of looking around and seen many answers for how to do this in older versions of Xcode, but they don't seem to aplly to Xcode 6. So how can I run an older version of iOS in the simulator with Xcode 6. Thanks for the help 回答1: In the Downloads pane of Xcode's Preferences, download the iOS 7 or 7.1 simulator. After it is downloaded, go to the Devices window (Window -> Devices) and click the Plus button to make a new simulated device with the system version you want. For