xcode5

Xcode custom compiler which wraps and does a passthru to clang

末鹿安然 提交于 2019-12-05 08:53:25
I'm trying to implement a certain pre-compilation effect on objective-C code ( explained here ). I've managed to get a custom compiler in place in Xcode 5 following these helpful instructions . However my passthru attempt to clang results in an error: My custom compiler's executable: #!/bin/bash clang "$@" Error message: While building module 'UIKit' imported from /Users/Club15CC/Google Drive/Code/Frogger/Frogger/Frogger-Prefix.pch:14: ... In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk/System/Library

How do I create a bot in Xcode? Getting “Creating a bot requires a project that is under source control.”

你。 提交于 2019-12-05 07:55:54
I'm trying to get Continuous Integration setup in Mavericks using OS X Server for Mavericks. I have the Server installed and my source code is in a local directory using Git from assembla. I'm following the Apple Xcode Continuous Integration Guide, and I'm at the part where I'm adding a bot to the product in Xcode. I'm getting the error: Creating a bot requires a project that is under source control. This project appears to be in a local git repository. To be able to create a bot, the project must be in an repository the server can access so it can clone it. [cancel] [Configure Remotes...]

Apps and app updates submitted to the App Store must be built with Xcode 5.1.1 or later, and iOS 7 SDK

断了今生、忘了曾经 提交于 2019-12-05 07:09:09
Got this error today with the new iTunes connect web page. My xCode version is and my SDK is My previous submission went through with the old web pages. Now the new web page keeps complaining about this error with my new version. Anyone seen the same issue? OK, it might be an issue of their web site. Just tried now with a cleaned build and it went through for review. For those who are having issues like this on Xcode 6.1 Issue Xcode 6.1 is still beta (14 October 2014). You can't submit apps built or using any beta software. Solution Simply revert to the Xcode 6.0.1 from Apple Store Found on

XCode 5.x + Maverick crashes on File operations

风格不统一 提交于 2019-12-05 06:32:59
after updating my OS to Maverick, Xcode 5.01 started to crash every time a "file operation" is attempted. With file operation I mean any operation that requires a file picker window to appear (e.g.: distribute an .ipa, add a file to the project, open a new project, etc) with a delay wich goes from seconds to split seconds. The error is always the same: Process: Xcode [2802] Path: /Applications/Xcode.app/Contents/MacOS/Xcode Identifier: com.apple.dt.Xcode Version: 5.0.1 (3335.23) Build Info: IDEApplication-3335023000000000~2 App Item ID: 497799835 App External ID: 84192765 Code Type: X86-64

'Cordova/CDVViewController.h' file not found when run in Xcode terminal

耗尽温柔 提交于 2019-12-05 05:44:58
So when I am trying to build my code from xcode terminal it is failing and giving me an error of 'Cordova/CDVViewController.h' file not found but when I am building this from xcode then it is building just fine. In my Xcode, I've done the whole Cordova sub directory thing Upgrade Cordova . Also when I ran list. This is what I see below: xcodebuild -list Information about project "myProject": Targets: myProject Build Configurations: Debug Release If no build configuration is specified and -scheme is not passed then "Release" is used. Schemes: myProject CordovaLib Environment: Xcode5, OS 10.8.5

override getter only needs @synthesize

[亡魂溺海] 提交于 2019-12-05 05:33:53
I want to ovveride getter for lazy instantiation and leave default setter. Do I need @synthesize ? Why ? @interface Foo() @property (strong, nonatomic) NSObject *bar; @end @implementation Foo - (NSObject *)bar { if(!_bar) _bar = [[NSObject alloc] init]; return _bar; } @end Update: I've changed variable and class name, because it was confusing. From Deck and card to Foo and bar. No, you only need to explicitly synthesize (to get the synthesized ivar) if you explicitly implement all of the accessor methods (both getter and setter for readwrite properties, just the getter for readonly properties)

When a function missing the return value, the compiler generates a warning but not an error?

☆樱花仙子☆ 提交于 2019-12-05 03:57:29
Here is a c++ function: int FuncWithoutReturn() { int var = 10; ++var; // No return value here !!! } In MSVC, compiler generates error: error C4716: 'FuncWithoutReturn' : must return a value. But in XCode 5, the compiler just spits a warning: Control reaches end of non-void function In runtime if I am lucky, the app crashes. I know it is a stupid error but it would be good that the compiler yields an error in first place. Just wondering anyone knows WHY XCode think it is a warning instead of an error. You can use -Werror=return-type to make that warning and error, in my original comment I

Custom Xcode 5 Project Templates only half working

爷,独闯天下 提交于 2019-12-05 02:35:52
问题 Ok so I got the custom file templates working when I add a new C++ file to the project, but when I create a new project, the comment section on the template is still at it's default. I feel like I have tried everything, and need some help. Im using the "Command Line Tool" template for my C++ projects. When I made my custom file template I just edited /Applications/Xcode.app/Contents/Developer/Library/Xcode/Templates/File Templates/C and C++/C++ Class.xctemplate/___FILEBASENAME___ .cpp When I

How to use a different icon for the App Store and device's home screen in applications with image assets?

孤人 提交于 2019-12-05 02:09:27
问题 The App Store stops showing the icon from iTunes Connect on non-retina computers' displays, and shows the app's icon now for applications with image assets. How can I use a different icon in the App Store and on the device's home screen for applications with image assets? An iTunesArtwork file in the application bundle can't help, because it will be shown only on iTunes. UPDATED: I think we can change one or more images from the image assets and display them in the App Store. But which ones?

iOS7 issues with NSIBPrototypingLayoutConstraint autolayout constraints generated by Interface Builder

被刻印的时光 ゝ 提交于 2019-12-05 02:06:06
Previously in iOS6, my chat message view controller displayed and animated correctly with carefully constructed autolayout constraints in IB. Here's the current view hierarchy with the constraints removed in Xcode 5: After upgrading to XCode 5 and iOS7, I found I needed to clear all the old constraints in order to account for the default translucent status bar, otherwise my toolbar would fall under the status bar. This happened despite calling setEdgesForExtendedLayout: with UIRectEdgeNone. I am now attempting to create all the constraints programmatically in viewDidLoad: // self.view