归档构建文件时需要“语言”,“ defined_in”或“ generated_declaration”

时间:2018-10-19 11:21:05

标签: ios objective-c generics ios7 clang++

我有客观的c项目,其中包含Swift ACTabScrollView库。 该项目在模拟器和设备上运行正常。但是当我尝试存档构建时 Xcode自动生成一些代码并显示以下错误

预期的“语言”,“ defined_in”或“ generated_declaration”

   # pragma clang attribute 
   push(__attribute__((external_source_symbol(language="Swift", 
   defined_in="Sallati",generated_declaration))), 
   apply_to=any(function,enum,objc_interface,objc_category,objc_protocol))
   # pragma pop_macro("any")
   #endif

#pragma clang属性pop”,但没有匹配的“ #pragma clang属性推送”

#if __has_attribute(external_source_symbol)
# pragma clang attribute pop
#endif
#pragma clang diagnostic pop

Please see the image for more detail

0 个答案:

没有答案