Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Building iOS app through the error in mixpanel

Tags:

angular

ionic2

I get the following message while building my iOS app:

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)

But it's working in Android. How do I fix this?

like image 312
user7314895 Avatar asked Dec 19 '16 04:12

user7314895


1 Answers

Try this

Changed the Xcode compile language default.

my build still fails, got a compile error at UIImage+MPAverageColor.m

if your got this error: "variable-sized object may not be initialized" from char colorIndices[kNumberOfHexColors] = {0};. this is caused by compiler using a wrong C dialect (C99 for example). to fix:

open your project in xcode.
goto build settings tab.
scroll down to "apple llvm 8.0 - language".
set "C language dialect" to be default.

please check README.md file

like image 159
Sathyanarayanan Avatar answered Nov 18 '22 02:11

Sathyanarayanan