Skip to content

Commit

Permalink
Assert to inform to re-add Xcode as subproject
Browse files Browse the repository at this point in the history
  • Loading branch information
VilemKurz committed May 24, 2012
1 parent c50f2a6 commit f9459f5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Classes/ShareKit/Core/SHK.m
Expand Up @@ -760,6 +760,8 @@ void SHKSwizzle(Class c, SEL orig, SEL newClassName)
if (nil == bundle) {
NSString* path = [[SHK shareKitLibraryBundlePath] stringByAppendingPathComponent:@"ShareKit.bundle"];
bundle = [[NSBundle bundleWithPath:path] retain];

NSCAssert(bundle != nil,@"ShareKit has been refactored to be used as Xcode subproject. Please follow the updated installation wiki and re-add it to the project. Please do not forget to clean project and clean build folder afterwards");
}
return [bundle localizedStringForKey:key value:key table:nil];
}
Expand Down

0 comments on commit f9459f5

Please sign in to comment.