【发布时间】:2015-12-22 04:29:14
【问题描述】:
我按照 Ray Wenderlich 的说明制作了一个静态库 (.a),编译它没有错误和警告,然后我将它包含在一个新项目中。当我尝试构建新项目时,我收到了这个错误:
/Users/.../PruebaInsights/PruebaInsights/libInsightsLib.a:1:1: Source file is not valid UTF-8
/Users/.../PruebaInsights/PruebaInsights/libInsightsLib.a:1:5: Null character ignored
/Users/.../PruebaInsights/PruebaInsights/libInsightsLib.a:1:8: Expected identifier or '('
/Users/.../PruebaInsights/PruebaInsights/libInsightsLib.a:2:3: Invalid filename for line marker directive
/Users/.../PruebaInsights/PruebaInsights/libInsightsLib.a:3:10: Null character ignored
如果编译正确,为什么会在库中出现这些错误?
【问题讨论】:
标签: ios xcode static-libraries .a