Facebook iOS SDK - How to build static library for Xcode 4.3?

前端 未结 3 429
感情败类
感情败类 2021-01-05 18:02

I\'m integrating Facebook to my iOS ARC app by following instructions in this link. i\'m stuck at building static library step.

https://developers.facebook.com/docs

3条回答
  •  执念已碎
    2021-01-05 18:56

    When you are integrate the Facebook SDk into your ARC enabled Iphone Application.

    I suppose you had some NonARC problem(errors due to release and dealloc etc.) in Facebook Classes(headers).Due to this you are not able to create the Build.

    So in my opinion you can disable the ARC for those Facebook Classes.

    I think after Disabling the ARC for those Facebook Classes ,you may create build Easily.

    For the Disabling the ARC you just need to follow few Steps.

    1)Go to the Application Target

    2)Choose Build Phase option from Build Phase.

    3)Compile Sources->Set "-fno-objc-arc" Flag for all Facebook Classes.

    Now Build Application

    I hope it'll help you.

提交回复
热议问题