xcode5.1

Xcode 5.1 enable C++14

怎甘沉沦 提交于 2019-12-22 03:36:12
问题 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 回答1: 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:

Architecture linking error after Xcode 5.1 upgrade

五迷三道 提交于 2019-12-21 05:39:18
问题 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

Zbar SDK - missing required architecture x86_64

拈花ヽ惹草 提交于 2019-12-20 08:54:38
问题 I had one problem during building application in the recent Xcode 5.1. Compilation fails with "Undefined symbols for architecture x86_64" error. I build my project with Valid Architecture: armv7, armv7s and arm64. After switch to the newest environment (Xcode) I rebuild libzbar.a library in the same architecture ( I have done it based on solution found at: Linker Error in Xcode-5) Maybe somebody also had same problem and finally he had solved it, please share with solution:) 回答1: I had the

NSInvalidUnarchiveOperationException: 'Could not instantiate class named _UITableViewCellSeparatorView'

岁酱吖の 提交于 2019-12-19 05:53:38
问题 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 constraints. 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 about this issue in another forum, but without a solution, just a test that I've done too and got the same error. 回答1: I

Apple Mach-O Linker Error Parse

被刻印的时光 ゝ 提交于 2019-12-18 08:58:44
问题 I recently added the iOS Parse Framework to my Xcode 5 project. I am getting 10 errors now... None from code. They are all Apple Mach-O Linker Errors. I took the framework out and the errors went away. I am using the latest Parse.framework, so I do not know why I am getting these errors. I also have another question, now that I updated to Xcode 5.1, when ever I use the UITabBarController or just want to add a tab bar to a ViewController... I gets all weird. The entire bar turns a solid grey..

Friend declaration specifying a default argument must be a definition

不羁的心 提交于 2019-12-18 08:48:29
问题 Since updating to XCode 5.1 one of my projects now has that error in the title and will not build, I have changed architecture to 32-Bit as before, but still the same issue. The line of code it refers to is; friend float DistBetweenModels (ShapeModel* pModel1, ShapeModel* pModel2, enEvalType nEvalType = ET_EyeDist, enDistType nDistType = DT_Max); If I remove the 'friend' and leave the 'float' the project builds but I am not confident it is doing what it should. 回答1: If I remove the 'friend'

“Simulator in use” error message shown even after simultor is not running [closed]

自闭症网瘾萝莉.ら 提交于 2019-12-17 21:09:38
问题 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 . Whenever I try to run an application from Xcode it displays an error message: This happens even though the simulator is not running. I force quit the simulator process from Activity Monitor, but it shows that message again and again. If I quit and reopen Xcode it will work without error, but is there any

Change the height of UILabel dynamically based on content

北战南征 提交于 2019-12-17 16:31:48
问题 I have a UILabel as subview of UIButton and I am passing the value from another view and populating in UILabel . Now, I want that UILabel must change its height based on the content.If text is "Hello" it must be in 1 line but if text is " my text is too long to fit in the label", it must change its size. I have used [self.addressLabel sizeToFit]; But for this i need to leave empty space below UILabel. Simply what I want is that when text strength increases,size of UILabel and UIView must

Incompatible block pointer types sending 'int (^)(__strong id, __strong id)' to parameter of type 'NSComparator'

时间秒杀一切 提交于 2019-12-13 14:40:54
问题 Getting below error in GPUImage Library when moved from xcode 5.0 to 5.1. After searching on google i found that i need to send int like this [NSNumber numberWithInt:number] but issue is that i dont have control on the value getting passed to sortedArrayUsingComparator in below given code. Error Log: Incompatible block pointer types sending 'int (^)(__strong id, _ strong id)' to parameter of type 'NSComparator' (aka 'NSComparisonResult (^)( _strong id, __strong id)') Error on this line :

C++ code fails to compile after upgrading XCode 5.0 -> 5.1 “forward declaration of class cannot have a nested name specifier”

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-13 14:22:46
问题 I have this in a .h file: class Ogre::ManualObject; I don't know how it got there but it's always compiled under multiple compilers - until suddenly XCode5.1 raises it as an error. Have Apple changed the C++ compiler again ? 回答1: As John suggested, change class Ogre::ManualObject; to namespace Ogre{ class ManualObject;} . I had exactly the same problem (but with different declarations), also with Ogre and Xcode 5.1. Changed 3 lines, everything worked. 回答2: Possibly that never was legal. It