xcode4.2

How to access weak linked framework in iOS?

可紊 提交于 2019-12-03 16:36:36
I want to use Twitter framework for iOS 5, but be able to run my app in older OS. I added weak referenced framework (i.e. set "optional" flag) in Xcode 4.2 Target settings. Base SDK is iOS 5, iOS deployment Target is iOS 3.2. Next, I try to use Twitter framework: #import <Twitter/Twitter.h> ... Class twClass = NSClassFromString(@"TWTweetComposeViewController"); if (!twClass) // Framework not available, older iOS { [self shareWithTwitterPriorIOS5]; return; } if ([TWTweetComposeViewController canSendTweet]) // Check if twitter is setup and reachable { TWTweetComposeViewController* twc = [

Should Xcode Storyboard support segues from a UITableView with 'dynamic prototype' cells?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-03 16:07:15
I can't get this working. If I drop the master UITableView to use Static cells I can get the segues working, such that when you click on a row in the master it automatically pushes the Child controller on. But with 'dynamic prototype' cells, I click on one of the cells and nothing happens... Am I supposed to programmatically push the child controller within the prepareForSegue method or something? In which case I'm not sure what advantage a segue here would have over the old way of just using No, you don't have to manually push the child controller. Did you connect a segue in your storyboard

Do I need ARC keywords for properties that I don't synthesize?

对着背影说爱祢 提交于 2019-12-03 15:50:31
I have a property that I do not synthesize, instead I create a getter and setter myself. Therefore, the ARC keywords (strong or weak) have no meaning, I assume, so I eliminate them. This works fine on Xcode 4.3, but when my coworker opens them on XCode 4.2 the compiler complains that there is no strong/weak keyword, so I instructed him to meaninglessly enter the keyword back in again. Which is correct (with or without keywords)? To be clear: I have a property like this @property (nonatomic) NSString *foo and in the .m file I implement -(NSString *)foo and -(void)setFoo:(NSString *)foo and do

Xcode 4.2 - App Loader: Unable to verify icon dimensions, no icon found

拟墨画扇 提交于 2019-12-03 15:00:16
I have never had this problems until I began to use Xcode 4.2. I'm getting the following error trying to upload my app: Unable to verify icon dimensions, no icon found. Your minimum os version is below 3.2, so you must define CFBundleIconFile or provide a default Icon.png that is 57x57 I have an "Icon.png" image and is 57x57. I tried add it and remove it from info.plist. No success. I don't know what to do. Here is my info.plist file Info.plist edited again SOLUTION Thanks for your comments. The problem was that I was not following the right steps to prepare the app for submission in Xcode 4.

How to use c++ and objective-c together in XCode 4.2

落花浮王杯 提交于 2019-12-03 12:52:45
问题 I had a trouble to combine c++ and objective-c together in developing a iphone app. I had a 3rd party library to use in the app. I had a plan to use c or c++ to wrap the library and then use objective-c to call it. After I had finished the class with c++, I had a trouble to use it in objective-c. Is there any sample code? Thanks. in the objective-c head file. I write #import <UIKit/UIKit.h> #import "ZJTConstants.h" #include "TTSAdapter.h" class Adapter; @interface ZJTVBlogViewController :

Ad hoc distribution: App failed to install

久未见 提交于 2019-12-03 12:37:09
问题 I have created an ad hoc archive and a .ipa file for the application I am trying to distribute. I have also created a distributing provisioning profile with the UDIDs of the devices that I plan on distributing my application to. When I drag the .ipa and .mobileprovision files into iTunes and try to sync the application to the device, an error message on the phone pops up reading "'myapp' failed to install". By the way, I have a standard iOS developer's license ($99 per year) and am using

Install Xcode 4.2 for Snow Leopard fails

人盡茶涼 提交于 2019-12-03 12:32:36
问题 I've download Xcode 4.2 from official site. And when installation starts - it shows an error: Not very informative.. What is the problem? where to see logs or something? PS.I have: Mac OS 10.6.8, Xcode 4.0, ~10 GB free space. And I want just to test my app on ios5. UPDATED: Installer[51580]: Failed install preflight: Error Domain=PKInstallErrorDomain Code=102 UserInfo=0x119de62e0 "The package “OpenGLApps.pkg” is untrusted." Underlying Error=(Error Domain=NSOSStatusErrorDomain Code=-2147409654

aws sdk for mac os x application development [closed]

▼魔方 西西 提交于 2019-12-03 09:17:29
问题 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 3 years ago . I need to develop an application for MAC OS X, which will be uploading the chosen files to amazon web services. But for that I need aws sdk for mac. I haven't found any on the web. Is it possible to modify the AWS SDK for iOS so it can be used for Mac? Also, the AWS SDK documentation doesn't explain how to

ld: library not found for -lz

青春壹個敷衍的年華 提交于 2019-12-03 07:50:28
This is driving me crazy, when i try to compile on the simulator, everything is ok, but on the device i got this error: ld: library not found for -lz Command /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/clang failed with exit code 1 Please help me understand the source of the problem: Ld /Users/ZConsulting/Library/Developer/Xcode/DerivedData/Fontenay-sous-Bois-dhlecgdgtoldsadoctkyueriyius/Build/Products/Debug-iphoneos/Fontenay-sous-Bois.app/Fontenay-sous-Bois normal armv7 cd /Users/ZConsulting/Desktop/Fontenay-sous-Bois setenv IPHONEOS_DEPLOYMENT_TARGET 5.0 setenv PATH "/Developer

After Upgrading from Xcode 4.2 to Xcode 4.3, instruments command line fails

℡╲_俬逩灬. 提交于 2019-12-03 07:10:23
问题 After upgrading from Xcode 4.2 to Xcode 4.3, the instruments command line tool fails with the following error: Error: No developer directory found at /Developer. Run /usr/bin/xcode-select to update the developer directory path. 回答1: sudo /usr/bin/xcode-select -switch /Applications/Xcode.app/Contents/Developer 来源: https://stackoverflow.com/questions/9485320/after-upgrading-from-xcode-4-2-to-xcode-4-3-instruments-command-line-fails