xcode5

Mach-O Linker Error Xcode 5

心不动则不痛 提交于 2019-12-07 12:50:00
问题 I have just updated my Xcode to version 5.0.2 And after updating, all my previously running apps (*perfectly running and archiving) are now giving following errors when I try to archive them for testing on my devices (not connected devices). Ld /Users/dharammalik/Library/Developer/Xcode/DerivedData/lite_test-hblolzuqyvugvdfpenjeoxvmovrk/Build/Intermediates/ArchiveIntermediates/lite_test/IntermediateBuildFilesPath/lite_test.build/Release-iphoneos/lite_test.build/Objects-normal/armv7s/lite_test

Used type va_list (aka_builtin_va_list) where arithmetic or pointer type is required in BWDB.m file

北城以北 提交于 2019-12-07 12:37:05
问题 I get this error and I'm unable to run the program due to this segment of code... // build the query NSString * query = [NSString stringWithFormat:@"update %@ set %@ = ? where id = ?", tableName, [[record allKeys] componentsJoinedByString:@" = ?, "]]; [self bindSQL:[query UTF8String] withVargs:(va_list)dValues.mutableBytes]; sqlite3_step(statement); sqlite3_finalize(statement); } I'm using Bill Weinman's sqlite3 code - BWDB.m - the full code can be found here (http://bw.org/iosdata/). I

What is the relationship between Storyboard form factor & Active Scheme in Xcode using Autolayout?

柔情痞子 提交于 2019-12-07 07:25:15
问题 I have a project in Xcode 5.0.1 targeting iOS7. I'm designing the app with a Storyboard, and I'm using Autolayout. When I build and run the app, I'm using the iOS Simulator to test it. I switch between the 3.5" and 4" retina schemes to view the app on different screen sizes. For the most part, everything works fine and Autolayout seems to work great. However, on one screen, there is a problem with the layout, but only under the following conditions: I set the scheme to "iPhone Retina (4-inch)

App crashes after power down on iPhone 4S

你离开我真会死。 提交于 2019-12-07 06:57:27
I am running iOS7 on an iPhone 4S and my app runs fine until I power down my iPhone and power it back on. When I launch my app it simply just flashes a black screen and then takes the user back to the iPhone app icon view. Also, my app uses RestKit .20.3 and ZBar for bar code scanning and is built using Xcode 5 on Mountain Lion. Then I connect my iPhone back to Xcode and then rerun the app and everything is fine again. Has anyone else experienced this issue. Below is a snippet from my crash log; Date/Time: 2013-10-03 22:23:41.334 -0400 OS Version: iOS 7.0.2 (11A501) Report Version: 104

How do you use an asset catalog image's slicing information programmatically?

心不动则不痛 提交于 2019-12-07 06:26:01
问题 I used to have an image in my project and I would load it like this: UIImage *image = [[UIImage imageNamed:@"image_name"] resizableImageWithCapInsets:UIEdgeInsetsMake(10.0f, 10.0f, 10.0f, 10.0f)]; Now I put that image into XCode 5's new asset catalog and I set the slicing for it. How do I use that image in my code so that I don't have to explicitly call resizableImageWithCapInsets when loading the image? Said another way, how do I take the slicing information stored in Images.xcassets and

Invalid context 0x0 on UITextField (Xcode 5)

廉价感情. 提交于 2019-12-07 05:55:46
问题 I am using a UITextField in my app. I am using [texfield becomeFirstResponder] . This works just fine and loads the keyboard when the view is loaded. However, this error comes up when I click on the UITextField again after it has been brought up. I don't understand exactly why, but here is the output I am getting: CGContextSetFillColorWithColor: invalid context 0x0. CGContextSetStrokeColorWithColor: invalid context 0x0. CGContextSaveGState: invalid context 0x0. CGContextSetFlatness: invalid

XCode does not add c++ source files that are in subdirectories into Compile Sources

眉间皱痕 提交于 2019-12-07 05:19:29
问题 I use XCode 5.1 for C++ development. I have existing code which I add to the project by dragging files from Finder. The project shows all necessary .h and .cpp files. But when I click Build Phases->Compile Sources , I only see sources that from the root directory in my source structure. None of the source files from subdirectories appear in the Compile Sources. Why? And how to fix this? Also, when I try to add the missing .cpp file from Build Phases->Compile Sources by pressing + , XCode does

UIKeyboard not automatically translucent in iOS7

你离开我真会死。 提交于 2019-12-07 05:06:20
问题 I understand that when developing in Xcode 5 with and iOS 7 project, the keyboard that pops up when interacting with a UITextField should be translucent and show through any colors in the background. This is not the case in both my projects. I have a colored & blurred background and I'm hoping for that to transpire through the keyboard; however the keyboard remains the default white/gray. This is what I have so far as a demo: UIColor *tintColor = [UIColor colorWithWhite:0.21 alpha:0.4];

Render to texture, then render texture to screen in iOS

风格不统一 提交于 2019-12-07 02:19:28
I am trying to render a simple scene into a FBO that is backed by a texture as a color attachment and then draw a quad to the screen using this texture in iOS. This will help me do some post processing of the final scene. There are a few questions on SO that address similar (but not quite the same) questions and I've tried whatever I could understand. Nothing works. I have two shader programs. The first one _program simply takes the vertex positions and renders them with a single color. The second one quadProgram takes a texture, the texture coords and the quad Coords. (In the interest of

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

一曲冷凌霜 提交于 2019-12-07 01:57:09
问题 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