通过mixpanel中的错误构建iOS应用程序

use*_*895 7 ionic2 angular

我在构建iOS应用时收到以下消息:

BUILD FAILED

The following build commands failed:

CompileC build/CareShield.build/Debug-iphonesimulator/CareShield.build/Objects-normal/x86_64/UIImage+MPAverageColor.o CareShield/Plugins/cordova-plugin-mixpanel/Mixpanel/UIImage+MPAverageColor.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
Run Code Online (Sandbox Code Playgroud)

但它在Android中运行.我该如何解决?

小智 7

试试这个

更改了Xcode编译语言的默认值.

我的构建仍然失败,在UIImage + MPAverageColor.m上遇到编译错误

如果你得到这个错误:char colorIndices [kNumberOfHexColors] = {0};"可能无法初始化变量大小的对象".这是由编译器使用错误的C语言(例如C99)引起的.修理:

open your project in xcode.
goto build settings tab.
scroll down to "apple llvm 8.0 - language".
set "C language dialect" to be default.
Run Code Online (Sandbox Code Playgroud)

请检查README.md文件