在建立cocos2d-x以後,運作發現以下錯誤:
ld: -pie can only be used when targeting iOS 4.2 or later
clang: error: linker command failed with exit code 1 (use -v to see invocation)
如圖所示:
這時候,選中左上角的項目檔案 ------>選中General ---------> DeploymentInfo 中 -------------> Deployment Target,
然後把裡面的4.0改成相應的版本,這樣再重新編譯,如:
修改以後,如圖所示:
然後再重新編譯,就發現成功了:
好,希望能幫到大家!