Commit 75e99682 authored by woxtu's avatar woxtu

Use the SPM provided flag

parent 22a57d5b
......@@ -23,10 +23,7 @@ let package = Package(
name: "TZImagePickerController",
path: "TZImagePickerController/TZImagePickerController",
resources: [.process("TZImagePickerController.bundle")],
publicHeadersPath: ".",
cSettings: [
.define("TZ_SPM")
]
publicHeadersPath: "."
)
]
)
......@@ -12,7 +12,7 @@
@implementation NSBundle (TZImagePicker)
+ (NSBundle *)tz_imagePickerBundle {
#ifdef TZ_SPM
#ifdef SWIFT_PACKAGE
NSBundle *bundle = SWIFTPM_MODULE_BUNDLE;
#else
NSBundle *bundle = [NSBundle bundleForClass:[TZImagePickerController class]];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment