Unverified Commit 0ddfca01 authored by 谭真's avatar 谭真 Committed by GitHub

Merge pull request #1422 from woxtu/patch

Use the SPM provided flag
parents 22a57d5b 75e99682
...@@ -23,10 +23,7 @@ let package = Package( ...@@ -23,10 +23,7 @@ let package = Package(
name: "TZImagePickerController", name: "TZImagePickerController",
path: "TZImagePickerController/TZImagePickerController", path: "TZImagePickerController/TZImagePickerController",
resources: [.process("TZImagePickerController.bundle")], resources: [.process("TZImagePickerController.bundle")],
publicHeadersPath: ".", publicHeadersPath: "."
cSettings: [
.define("TZ_SPM")
]
) )
] ]
) )
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
@implementation NSBundle (TZImagePicker) @implementation NSBundle (TZImagePicker)
+ (NSBundle *)tz_imagePickerBundle { + (NSBundle *)tz_imagePickerBundle {
#ifdef TZ_SPM #ifdef SWIFT_PACKAGE
NSBundle *bundle = SWIFTPM_MODULE_BUNDLE; NSBundle *bundle = SWIFTPM_MODULE_BUNDLE;
#else #else
NSBundle *bundle = [NSBundle bundleForClass:[TZImagePickerController class]]; 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