xcode5.1

Xcode 6 iOS 8 UIImage imageNamed from bundle issue

橙三吉。 提交于 2019-12-07 11:17:23
问题 I build my project using iOS 7.1 and try to load UIImage view with image that is stored in the /images/cars/car_1.png All images are located in the folder images as on picture below in project tree: So it works perfect for iOS 7.1 and Xcode 5, but when I try to use Xcode 6 and iOS 8 the UIImage instance is equal nil when I try crate image. UIImage *image = [UIImage imageNamed:@"/images/cars/car_1.png"]; po image nil (for iOS 8) it can be also UIImage *image = [UIImage imageNamed:@"/images

How do Prevent a copy/paste/select popover on a UITextView using UIMenuController iOS5.1

╄→尐↘猪︶ㄣ 提交于 2019-12-06 16:09:11
问题 The question : How do I prevent the copy/paste/select popup that occurs over a UITextView from appearing (not using UIwebView and css)? I did not want to go the rout of UIWebView as some posts have gone because I already am using UIViews with UITextFields for data entry. I had tried unsuccessfully to implement the solutions dealing with UITextField in my implementation file of my view controller with the methods: targetForAction:withSender , setMenuVisible:animated and finally

Core Plot and Xcode 5.1 - How to convert Core Plot to ARC?

爷,独闯天下 提交于 2019-12-06 14:03:38
I just installed Xcode 5.1 and found that it definitely requires projects to use ARC. I get error: garbage collection is no longer supported when trying to compile Core Plot (version 1.4). Out of curiosity I told Xcode to convert Core Plot to ARC. But it fails with ARC forbids Objective-C objects in struct in file CPTPlatformSpecificFunctions.m . I don't want to dive into Core Plot and break something by trying to fix this or similar errors. Is there a compiler setting I have overlooked? Or will there be a Core Plot version which uses ARC soon? Thanks, Dirk Xcode 5.1 doesn't require projects

how to edit a plist programmatically in xcode 5 iOS 7?

不打扰是莪最后的温柔 提交于 2019-12-06 12:25:19
how can I edit or change a value string from: in this plist I need change or Set "NO" in Enabled Value from Item 2, I see a lot examples, but not working, or are deprecated, or don't use ARC, any idea or example code? please help guys EDIT#1: I try this (not work) NSString *path = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) lastObject]; path = [path stringByAppendingPathComponent:@"List.plist"]; NSFileManager *fileManager = [NSFileManager defaultManager]; if (![fileManager fileExistsAtPath:path]) { NSString *sourcePath = [[NSBundle mainBundle]

Workspace integrity : The file could't be opened Xcode 5

蓝咒 提交于 2019-12-06 04:19:20
I'm developing an application in PhoneGap using Xcode 5. I created project as per steps given in PhoneGap documentation. The app worked well in last run. But as of now it's showing an Workspace Integrity Error : The file cannot be opened. This error comes-up in case of Xcode 5 and not in Xcode 4. Any idea how to deal with this issue? Go to your xcode project file in finder, right click and select show package contents. Inside that you have this file called project.pbxproj. Open that with the text editor and see if there are many conflict texts in it like git merge conflict text ( <<<<>> ) .

No architectures to compile for (ARCHS=i386, VALID_ARCHS=arm64 armv7 armv7s)

倾然丶 夕夏残阳落幕 提交于 2019-12-05 10:27:55
问题 Preface: I did look at similar questions and none of the answers seemed to fix my problem. I am trying to build my xcode (version 5.1.1) project using: xcodebuild clean build -sdk iphonesimulator7.0 -arch "armv7s" ONLY_ACTIVE_ARCH=NO , when I run this I get: No architectures to compile for (ARCHS=armv7s, VALID_ARCHS=i386 x86_64) as an error. I tried the above command with all of the VALID_ARCHS (rm64 armv7 armv7s) as inputs. So I then tried running this command: xcodebuild clean build -sdk

NSInvalidUnarchiveOperationException: 'Could not instantiate class named _UITableViewCellSeparatorView

核能气质少年 提交于 2019-12-05 04:52:52
After XCode Update (5.1) my app crashes when i try to run in iOS 6.x. I have an app where I have a custom cell and contraints. Auto layout is unchecked for the xib file. The error I get is: * Terminating app due to uncaught exception 'NSInvalidUnarchiveOperationException', reason: 'Could not instantiate class named _UITableViewCellSeparatorView' I only found one thread ( https://forums.xamarin.com/discussion/14691/app-crashes-after-xcode-update ) about this issue in other forum, but without solution, just a test that i've done too and got the same error. Help!!! I was getting the same error

Xcode 5.1 enable C++14

半腔热情 提交于 2019-12-04 23:57:19
Xcode 5.1 using Clang 3.4. And Clang 3.4 supports C++14. However, I've been surfing though all of the Xcode options and don't see a way to enable C++14. I'm trying to enable the relaxed constexpr feature of C++14 To get this to work, you first set "C++ Language Dialect" to "compiler default". Then in "Other C++ flags" add "-std=c++1y". This will allow Clang++ to compile with c++14 from within Xcode. I tested this with Xcode 5.1.1 using the new user defined literal for basic_string: std::string word = "hello"s; Update: As of Xcode 6, c++14 is available as a first-class language dialect. With

No architectures to compile for (ARCHS=i386, VALID_ARCHS=arm64 armv7 armv7s)

寵の児 提交于 2019-12-03 22:37:04
Preface: I did look at similar question s and none of the answers seemed to fix my problem. I am trying to build my xcode (version 5.1.1) project using: xcodebuild clean build -sdk iphonesimulator7.0 -arch "armv7s" ONLY_ACTIVE_ARCH=NO , when I run this I get: No architectures to compile for (ARCHS=armv7s, VALID_ARCHS=i386 x86_64) as an error. I tried the above command with all of the VALID_ARCHS (rm64 armv7 armv7s) as inputs. So I then tried running this command: xcodebuild clean build -sdk iphonesimulator7.0 -arch "i386" ONLY_ACTIVE_ARCH=NO and I then get No architectures to compile for

Architecture linking error after Xcode 5.1 upgrade

老子叫甜甜 提交于 2019-12-03 17:17:27
I am having these errors: libGPUImage.a, file was built for archive which is not the architecture being linked (armv7s), libPods.a, file was built for archive which is not the architecture being linked (armv7s) and more... These are my project settings: Architectures:armv7,armv7s,arm64 Build Active Architectures Only:NO Valid Architectures;armv6 armv7 armv7s arm64 i386 I didn't change anything except for downloading latest Xcode 5.1 with the iOS 7.1 SDK. This project worked fine with Xcode 5.0 and iOS 7.0 SDK. What could be the problem? Got to Build Settings -> Architectures You probably have