objective-cでjsonを利用SBJson (aka json-framework)

http://stig.github.com/json-framework/api/3.0/index.html

https://github.com/stig/json-framework/

1. gitで取得
$ git clone https://github.com/stig/json-framework.git sbjson

2.classesの中のファイルをprojectに追加。

https://github.com/stig/json-framework/blob/master/INSTALL.md

*.h *.m をすべてプロジェクトディレクトリにコピーして追加

3.利用するファイルにヘッダーを追加
#import “SBJson.h”

コンパイルエラー
SBJsonStreamParser.h:105: error: expected a property attribute before ‘unsafe_unretained’
こんな感じ

http://stackoverflow.com/questions/7867983/cant-compiler-json-framework


意味が分からないのであまり良くないとは思うがデフォルト設定を変えてみるが、解決せず。

とりあえずxcodeのバージョンを最新にしてみるか
同様のエラーで、いくつか解決策のようなものもありましたが
結局。 SBJson関連ファイルがいくつか抜けていただけでした。
何も設定しなくても問題なく動きました。

os 1.7.4 xcode 4.3.2

This entry was posted on 木曜日, 6月 7th, 2012 at 5:53 PM and is filed under Objectiv-C, xcode. You can follow any responses to this entry through the RSS 2.0 feed. Both comments and pings are currently closed.

Unityによるゲームを公開しております iOS/Android
https://itunes.apple.com/jp/app/lost-knight-3d-action/id900917032
https://play.google.com/store/apps/details?id=com.groundroad.runknight

各種開発支援・機能開発等小さいお仕事などもお請けしております。
unity開発支援, PHPシステム開発, javascript/html5 フロント開発, titanium mobileアプリ開発
お気軽にお問い合わせください
大崎・五反田近郊での対面でのお打ち合わせはいつでも可能です。