http://blog.csdn.net/xzjxylophone/article/details/8532805
用一個靜態庫工程A,裏面有JSON庫相關的類和封裝函數
在工程B中使用A的時候,如果使用 JSONValue的時候,會出現
[NSCFString JSONValue]: unrecognized selector sent to instance的錯誤。
此時的解決方法是
設置工程B的Build Setting中找到
OTHER_LINKER_FLAGS
添加2個相關的編譯條件:
-ObjC
-all_load
就可以了
相關 參照:http://stackoverflow.com/questions/5172471/json-error-on-iphone-app