解决oc代码编译成C++代码weak报错( cannot synthesize weak property in file using manual reference counting)

 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 synthesize weak property in file using manual reference counting))