Skip to content

Commit

Permalink
Use the SPM provided flag
Browse files Browse the repository at this point in the history
  • Loading branch information
woxtu committed Nov 14, 2020
1 parent 22a57d5 commit 75e9968
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,7 @@ let package = Package(
name: "TZImagePickerController",
path: "TZImagePickerController/TZImagePickerController",
resources: [.process("TZImagePickerController.bundle")],
publicHeadersPath: ".",
cSettings: [
.define("TZ_SPM")
]
publicHeadersPath: "."
)
]
)
Original file line number Diff line number Diff line change
Expand Up @@ -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]];
Expand Down

0 comments on commit 75e9968

Please sign in to comment.