xcode4.3

Code signing is required for product type 'Application' in SDK 'iOS5.1'

≡放荡痞女 提交于 2019-11-28 06:08:56
I am using xCode 4.3.1. After i created a project, i build it and tried to Archive. Then i got an error saying; (This is my first project in xCode 4.3.1) CodeSign error: code signing is required for product type 'Application' in SDK 'iOS5.1' What does this mean ? and how to solve it ? Abizern It means you haven't assigned a provisioning profile to the configuration. Usually it's because "Any iOS SDK" must have a profile and cannot be set to "Don't sign". All this and more is answered in the TN2250 Tech Note about Code Signing and Troubleshooting. One possible solution which works for me:

Split UIImage in half?

坚强是说给别人听的谎言 提交于 2019-11-28 06:05:55
How would I go about splitting a UIImage In half(down the middle) so it would make two images? You can try this, UIImage *image = [UIImage imageNamed:@"yourImage.png"]; CGImageRef tmpImgRef = image.CGImage; CGImageRef topImgRef = CGImageCreateWithImageInRect(tmpImgRef, CGRectMake(0, 0, image.size.width, image.size.height / 2.0)); UIImage *topImage = [UIImage imageWithCGImage:topImgRef]; CGImageRelease(topImgRef); CGImageRef bottomImgRef = CGImageCreateWithImageInRect(tmpImgRef, CGRectMake(0, image.size.height / 2.0, image.size.width, image.size.height / 2.0)); UIImage *bottomImage = [UIImage

Xcode 4.3 : missing icons for iOS apps in Organizer's archives

守給你的承諾、 提交于 2019-11-28 05:23:25
Since upgrading to Xcode 4.3.x, my archives of iOS app in Organizer don't have an icon. (I have icons on my Mac OS X apps though) One app in particular is an iPad app for which i provided 2 icons (normal + retina sizes) but still, I don't get an icon for it in my archives. xcode-select -print-path returns /Applications/Xcode.app/Contents/Developer (which I believe is the right setting as I want to have xcodebuild and xcron available in the terminal) EDIT : After investigation, I've found out that as of Xcode4.3.2, archives are using the first item of the CFBundleIconFiles embedded inside the

Get UIWebView content's Height

爷,独闯天下 提交于 2019-11-28 04:59:30
I have a uiwebview that loads data using the loadHtmlString function.The thing is i am loading the data from an sqlite database, each time i load a different string with different length and naturally the web view obtains different height. Now i need to know each time the exact height of the uiwebview in order to load an imageView right under the webView. I have tried - (void)webViewDidFinishLoad:(UIWebView *)aWebView { CGRect frame = aWebView.frame; frame.size.height = 1; aWebView.frame = frame; CGSize fittingSize = [aWebView sizeThatFits:CGSizeZero]; frame.size = fittingSize; aWebView.frame

command-line library build fails with linker error

假如想象 提交于 2019-11-28 01:05:26
问题 I am getting a library not found error building GraphViz current release (June 7 2012) with Xcode 4.3 using a script. I may have made mistakes updating build scripts from other people's successful recipes for the new location of Xcode4.3 and the developer tools in the Applications folder. ld: library not found for -lcrt1.10.6.o (doing this from memory so exact number on the CRT lib may be wrong) Am also a little lost also how I would incorporate this into an Xcode build in the IDE. I am a

Xcode compiles my App, but can't run it in the simulator

谁说胖子不能爱 提交于 2019-11-27 18:56:20
when i compile my app, Xcode just says "Attaching to Projectname..." and gets stuck there. The debugger just prints this out: error: failed to attach to process ID 0 I tried to clean & build again and it still doesn't work out. I googled but couldn't find anything helpful. How can I fix this problem? Thank You! Lindemann The solution for me was to delete everything Xcode has generated earlier: the App on the Simulator...if this is not possible because you cant reach the Homescreen, you can delete the App directly under ~/Library/Application Support/iPhoneSimulator/6.0/Applications delete the

iOS 5.1 with Xcode 4.3.1: [UIColor colorWithPatternImage:] strange behavior only on device

孤人 提交于 2019-11-27 18:10:06
When I compile my app in Xcode 4.3.1 with iOS 5.1, I notice there is a strange behavior with background textures only on actual device. There is a 1px gap in between texture tiles shown in screenshot below. My texture are 150x150 and 300x300 at 2x. So far I've tested the same build on: Simulator iPhone/iPad both 5.0/5.1: No bug iPhone/iPad running 5.0.1: No bug iPhone/iPad running 5.1: Buggy I've been getting the same problem since 5.1 aswell. I solved it by doing the following to the image in photoshop. You can probably do the same in another tool. Load the file, select all, and copy to

Uninstalling Xcode 4.3

蹲街弑〆低调 提交于 2019-11-27 14:39:12
问题 I have Xcode 4.3 installed on Mac OS Lion, but I can't find a way to uninstall it. Any ideas? I have no /Xcode4/Library/uninstall-devtools (can't find an Xcode4 folder) or /Developer/Library/uninstall-devtools (Library folder doesn't exist under Developer) I have a Users/me/Library/Developer/Xcode with: DerivedData UserData Installs iOS DeviceSupport I have /Developer with Applications Documentation Extras Platforms The only other place I could find a reference to Xcode was in Applications

lldb fails to print variable values with “error: reference to 'id' is ambiguous”

拈花ヽ惹草 提交于 2019-11-27 13:25:28
问题 Since I updated to xcode 4.3 and let it switch my debugger over to lldb, any request to print a member variable fails with this error message: (lldb) print request error: error: reference to 'id' is ambiguous note: candidate found by name lookup is 'id' note: candidate found by name lookup is 'id' error: 1 errors parsing expression 'self' is ok: (lldb) print self (LoginViewController *) $6 = 0x1cd54d50 And other forms of printing the member variable also fail: (lldb) print self.request error:

Custom Fonts Xcode 4.3

一个人想着一个人 提交于 2019-11-27 12:51:06
问题 I'm trying to use this font in my project but it won't work. I added the .ttf file in my project and added its name in the MyApp-Info.plist under the key: Fonts provided by application. Then I tried this: [_titleLabel setFont:[UIFont fontWithName:@"chalkboard" size:_titleLabel.font.pointSize]]; I also checked if the name of the font is really "chalkboard" and it is. The displayed font is still Helvetica, only smaller. Where could the problem be? Thanks in advance. 回答1: You need to use font