iPhone ARC& Facebook SDK [英] iPhone ARC & Facebook SDK

查看:157
本文介绍了iPhone ARC& Facebook SDK的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于我的应用程序使用ARC,我在Facebook的SDK中遇到了各种构建错误。我尝试从编译器中删除Facebook文件以避免这种情况,但是当我删除Facebook.m文件时出现Apple Mach-O错误。如果我把它放回编译源中,我会收到ARC错误。

I'm getting all kinds of build errors with Facebook's SDK because my app uses ARC. I try to remove the Facebook files from the compiler to avoid this, but I get an Apple Mach-O error when I remove the Facebook.m file. If I put that back in the compile sources, I get the ARC errors.

任何人遇到这个?

推荐答案

您是否使用编译器标志
-fno-objc-arc
将它们从arc中排除?
您可以在这里看到答案

Do you exclude them from arc with Compiler flag -fno-objc-arc ? You can see a Answer here

这篇关于iPhone ARC& Facebook SDK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆