Kraken IOS Build now generates a framework rather than a static library.

Xcode 6 now required
This commit is contained in:
2014-09-15 00:33:14 -07:00
parent 1afe308047
commit 2ea641c28c
8 changed files with 556 additions and 416 deletions

View File

@@ -218,9 +218,12 @@ void kraken::set_debug_text(const std::string &print_text)
NSString *bundleName = @"kraken_standard_assets_osx";
#endif
// NSString *bundlePath = [[[NSBundle mainBundle] bundlePath] stringByAppendingPathComponent:bundleName];
NSString *bundlePath = [[NSBundle mainBundle] pathForResource:bundleName ofType:@"bundle"];
NSBundle *frameworkBundle = [NSBundle bundleWithIdentifier: @"com.krakenengine.kraken"];
//NSString *bundlePath = [[frameworkBundle bundlePath] stringByAppendingPathComponent:bundleName];
NSString *bundlePath = [frameworkBundle pathForResource:bundleName ofType:@"bundle"];
NSBundle *bundle = [NSBundle bundleWithPath:bundlePath];
if(bundle == nil) {
KRContext::Log(KRContext::LOG_LEVEL_ERROR, "%s", "ERROR - Standard asset bundle could not be found.");
} else {