美文网首页iOS开发iOS高阶UI相关
解决oc代码编译成C++代码weak报错( cannot syn

解决oc代码编译成C++代码weak报错( cannot syn

作者: 为之则易ing | 来源:发表于2018-08-07 17:38 被阅读2次
 error:
      cannot synthesize weak property in file using manual reference counting

解决:

clang  -x objective-c -rewrite-objc -fobjc-arc -stdlib=libc++ -mmacosx-version-min=10.7 -fobjc-runtime=macosx-10.7 -Wno-deprecated-declarations  -isysroot   /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk  ViewController.m

相关文章

网友评论

    本文标题:解决oc代码编译成C++代码weak报错( cannot syn

    本文链接:https://www.haomeiwen.com/subject/awvavftx.html