SDKBOX Compile error x86_64

Im using IAP SDKBox with cocos2d 2.2.6 for iOS.
When compile I got a lot of errors like this:

Undefined symbols for architecture x86_64:
  "std::string::find_last_of(char const*, unsigned long) const", referenced from:
      sdkbox::__pathForAssets(std::string const&) in sdkbox(FileUtilsIOS.o)
  "std::string::end() const", referenced from:
      sdkbox::utils::startsWith(std::string const&, std::string const&) in PluginIAP(IAPHelper.o)
  "std::string::data() const", referenced from:
      sdkbox::JsonParser::parse_string() in sdkbox(json98.o)
  "std::string::find(char, unsigned long) const", referenced from:
      sdkbox::Json::JsonAtPath(std::string const&) const in sdkbox(json98.o)
      sdkbox::base64_decode(std::string const&, unsigned long*) in sdkbox(Base64.o)
  "std::string::size() const", referenced from:
      sdkbox::Json::parse(std::string const&) in sdkbox(json98.o)
      std::basic_string<char, std::char_traits<char>, std::allocator<char> > std::operator+<char, std::char_traits<char>, std::allocator<char> >(char, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) in sdkbox(json98.o)

I tested with IAP Sample code, I think the Architectures Setting in xcode.
The sample comes with ARCHS_STANDARD_32_BIT while mine is ARCHS_STANDARD with armv7, arm64.

I tried changing mine using OTHERS… but still doesnt work.

Any help please.

Thanks

Are you using this sample? I just tested this everything is compiling

Are you compile it on to mac instead of iOS?

Yes, I’m using the same sample.

The only different is on Architectures setting. Mine is:

Standard architectures(armv7, arm64) - $(ARCHS_STANDARD)

That is the only option for my project.

In the sample is:

$(ARCHS_STANDARD_32_BIT) - $(ARCHS_STANDARD_32_BIT)

The sample has one other option which is the armv7, arm64 similar to above. When I select this, it stays to Standard architectures(armv7, arm64) - $(ARCHS_STANDARD). No other option available after that. When compile will have 100+ errors.

I stashed this branch for now from my project as I completed implementing IAP natively with SDKBOX IAP api as reference. It is a big help btw. Thank you.

Probably I will look back SDKBOX when I have the time later.

Thanks again.