I have just loaded the ShareKit files into my project (which worked nicely otherwise), and went to build and run (with no code additions as yet).
I received 11 warnings and 37 errors!
Is there something I'm missing here? The warnings are for deprecated functions in the SHK**** files.
Any ideas?
Using Xcode 4.
Thanks for any assistance,
Kolya
This fork (https://github.com/mogeneration/ShareKit) compiles/works perfectly on XCode 4/iPhone 3.2.1 Simulator, it should be good for you, besides is based on the latest oficial version :)
Try reborn ShareKit - supported by a community.
I'm using reborn ShareKit, but still get some warnings after adding the shareKit folder to my project. For some reason, when compiling the example project, there are no warnings at all. :(
For anyone that has been having problems with ShareKit with iOS5, Facebook released their own wrapper which is way more compatible because you know, Facebook did it.
https://github.com/facebook/facebook-ios-sdk
Related
I recently installed the latest Facebook iOS SDK and included the Accounts framework for use with it. While I don't think the issue is related to the Facebook iOS SDK, I thought I'd mention it.
The error I'm getting when I compile now is this:
Pasting formed '_MAC#', an invalid preprocessing token
There are 3 of these errors, all within the Accounts framework header files that I cannot edit.
I'm using the default compiler: Apple LLVM compiler 4.2 with XCode version 4.6.3
I tried researching this issue for hours to no avail.
UPDATE: I tried compiling with Apple LLVM compiler 5.0 in XCode 5 Beta and I get even more compiler errors related to the Accounts framework.
UPDATE: I started a totally new project and rebuilt it from scratch. The same issue persists. As of now, it seems like my only option is to not use the new Facebook SDK or Accounts framework. I'm surprised no one else has this issue.
Have you set the Accounts.framework as "optional" under target settings?
Make it "Optional" and then Clean, Build and Run Project.
Solved it. I had a #define that looked like this in the pch file:
#define NA #"-"
Note to self. Do not use short define names in global header files.
I am getting about thirty issues already with the files which I downloaded from http://allseeing-i.com/ASIHTTPRequest/.
See http://f.cl.ly/items/0J0l3w1t1n222N3E3v44/ASIErrors.tiff for a few errors highlighted in XCode.
Do I have to go through each one individually to fix or is there a simple fix?
EDIT: It seems to be something to do with "ARC"?
Thanks!
Guessing you're trying to compile with XCode 4.2 / iOS 5. You'll need to turn off ARC. Here's an article that shows how to do it for the whole project:
http://matthiaswessendorf.wordpress.com/2011/09/12/disabling-the-arc-in-xcode-4-2/
i am trying to incorporate iAd's into my app and in the process i'v gone through Apple's sample code.This is the link to the sample code. I have downloaded the sample code from apple's developer website and ran the same code without any changes in x-code. I encountered almost 9 errors after this,some of which are as follows.
1 - cannot find protocol declaration for iAdinterstitialAdDelegate
2 - ADInterstitialAd undeclared etc..
Please note that i haven't made any changes after downloading the code... Any help in this regard would really be appreciated
Do you have the SDK 4.3 (or newer) installed?
If yes, check the base SDK of your project/target and see if it's set to something lower than 4.3.
ADInterstitialAd is only available since 4.3
I've been working on creating my own iPhone app with source code my company gave me. This code was created with iPhone SDK 3.0. I've worked on it for over a year (I'm a designer so my coding is mostly copy and paste) and to test the app on my iPhone it says I must update my SDK to 4.2. I'm wondering will this break my app? I probably don't have the skills in xcode to upgrade my code if I am required to rewrite parts.
Thanks,
Chris
If none of the code has been deprecated, changed or even removed, chances are good it still runs fine. Most projects run, and if you have used external code (and hopefully noted where you got it from) there might be an update available for that piece of code.
Just set the deployment target to iOS 3.0 in your project settings
here some little explanation: link
My iPhone app was rejected with the following note:
The following non-public APIs are included in your application:
Spi Symbols
__memset_chk
__memmove_chk"
These symbols appear in a small number of apparently cocos2d related object files:
Grid.o
Primitives.o
TextureAtlas.o
Curiously, this app had already been approved under the previous SDK, but under 3.2 it's being rejected, though that may have nothing to do with it.
I'm not at all sure how to resolve this and appreciate any help anyone can offer. Thanks.
If cocos2d is using non-public API, I would suggest you first check if there is a newer version available that fixes this issue.
If you are already using the latest version then you should file a bug report with the cocos2d project and hope for a quick fix.