Jump to content

set framework automatically


2 posts in this topic

Recommended Posts

Updated (edited)
-(const char *)getFrameworkName {
    if(frameworkName) return frameworkName;
    NSFileManager *fileManager = [NSFileManager defaultManager];
    NSString *bundlePath = [[NSBundle mainBundle] bundlePath]; 
    NSString *path = [bundlePath stringByAppendingString:@"/Frameworks/UnityFramework.framework/UnityFramework"];
      if([fileManager fileExistsAtPath:path]) {
          frameworkName = "UnityFramework";
      } else {
          frameworkName = NULL;
      }
  return frameworkName;
}

 

Updated by quatorze
  • Winner 1
×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines