File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 2644
2644
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
2645
2645
MTL_ENABLE_DEBUG_INFO = YES;
2646
2646
ONLY_ACTIVE_ARCH = YES;
2647
+ "OTHER_SWIFT_FLAGS[arch=*]" = "-DCOCOAPODS -DSPM";
2647
2648
PRODUCT_NAME = IterableSDK;
2648
2649
SDKROOT = iphoneos;
2649
2650
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
2704
2705
GCC_WARN_UNUSED_VARIABLE = YES;
2705
2706
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
2706
2707
MTL_ENABLE_DEBUG_INFO = NO;
2708
+ "OTHER_SWIFT_FLAGS[arch=*]" = "-DSPM -DCOCOAPODS";
2707
2709
PRODUCT_NAME = IterableSDK;
2708
2710
SDKROOT = iphoneos;
2709
2711
SWIFT_COMPILATION_MODE = wholemodule;
Original file line number Diff line number Diff line change @@ -135,7 +135,13 @@ public class IterableEmbeddedView:UIView {
135
135
}
136
136
137
137
func loadViewFromNib( ) -> UIView ? {
138
- let nib = UINib ( nibName: " IterableEmbeddedView " , bundle: Bundle . module)
138
+ var nib : UINib
139
+ #if COCOAPODS
140
+ nib = UINib ( nibName: " IterableEmbeddedView " , bundle: Bundle . main)
141
+ #else
142
+ nib = UINib ( nibName: " IterableEmbeddedView " , bundle: Bundle . module)
143
+ #endif
144
+
139
145
let view = nib. instantiate ( withOwner: self , options: nil ) . first as? UIView
140
146
view? . backgroundColor = UIColor . clear
141
147
self . clipsToBounds = false
You can’t perform that action at this time.
0 commit comments