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