Skip to content
This repository was archived by the owner on Jul 15, 2019. It is now read-only.

Commit 9f60680

Browse files
committed
Fix UI for iPhone X
1 parent b518af8 commit 9f60680

File tree

6 files changed

+82
-20
lines changed

6 files changed

+82
-20
lines changed

YangMingShan/YMSPhotoPicker/Private/YMSAlbumPickerViewController.m

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ @interface YMSAlbumPickerViewController ()<UITableViewDelegate, UITableViewDataS
2323
@property (nonatomic, strong) NSArray *collectionItems;
2424
@property (nonatomic, strong) PHCachingImageManager *imageManager;
2525
@property (nonatomic, weak) IBOutlet UINavigationBar *navigationBar;
26+
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *navigationBarTopConstraint;
2627
@property (nonatomic, weak) IBOutlet UIView *navigationBarBackgroundView;
2728
@property (nonatomic, weak) IBOutlet UITableView *albumListTableView;
2829
@property (nonatomic, strong) UIView *footerView;
@@ -71,6 +72,8 @@ - (void)viewDidLoad {
7172

7273
[self.albumListTableView registerNib:cellNib forCellReuseIdentifier:[YMSAlbumCell yms_cellIdentifier]];
7374
self.footerViewHeight = CGRectGetHeight(self.view.bounds) * 2;
75+
76+
[self adjustStatusBarSpace];
7477
}
7578

7679
- (void)viewDidLayoutSubviews
@@ -91,6 +94,12 @@ - (void)viewDidLayoutSubviews
9194
}
9295
}
9396

97+
- (void)viewWillTransitionToSize:(CGSize)size withTransitionCoordinator:(id <UIViewControllerTransitionCoordinator>)coordinator
98+
{
99+
[super viewWillTransitionToSize:size withTransitionCoordinator:coordinator];
100+
[self adjustStatusBarSpace];
101+
}
102+
94103
- (UIStatusBarStyle)preferredStatusBarStyle
95104
{
96105
return [YMSPhotoPickerTheme sharedInstance].statusBarStyle;
@@ -167,4 +176,14 @@ - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath
167176
[self dismiss:nil];
168177
}
169178

179+
#pragma mark - Privates
180+
181+
- (void)adjustStatusBarSpace
182+
{
183+
if (![self.view respondsToSelector:@selector(safeAreaInsets)]) {
184+
CGFloat space = UIDeviceOrientationIsLandscape(UIDevice.currentDevice.orientation) ? 0 : 20;
185+
self.navigationBarTopConstraint.constant = space;
186+
}
187+
}
188+
170189
@end

YangMingShan/YMSPhotoPicker/Private/YMSAlbumPickerViewController.xib

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2-
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="11762" systemVersion="15G1217" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="13196" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
33
<device id="retina4_7" orientation="portrait">
44
<adaptation id="fullscreen"/>
55
</device>
66
<dependencies>
77
<deployment identifier="iOS"/>
8-
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="11757"/>
8+
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13174"/>
9+
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
910
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
1011
</dependencies>
1112
<objects>
@@ -14,6 +15,7 @@
1415
<outlet property="albumListTableView" destination="cLv-KU-yiY" id="zbG-0p-fUf"/>
1516
<outlet property="navigationBar" destination="ACe-re-oFh" id="Rwd-mu-2aw"/>
1617
<outlet property="navigationBarBackgroundView" destination="hXU-Ao-dOU" id="2Cv-8c-yVy"/>
18+
<outlet property="navigationBarTopConstraint" destination="61k-oM-FiK" id="Zeb-1J-h75"/>
1719
<outlet property="view" destination="i5M-Pr-FkT" id="sfx-zR-JGt"/>
1820
</connections>
1921
</placeholder>
@@ -36,9 +38,9 @@
3638
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
3739
</view>
3840
<navigationBar contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="ACe-re-oFh">
39-
<rect key="frame" x="0.0" y="0.0" width="375" height="64"/>
41+
<rect key="frame" x="0.0" y="20" width="375" height="44"/>
4042
<constraints>
41-
<constraint firstAttribute="height" constant="64" id="pbv-rq-djV">
43+
<constraint firstAttribute="height" constant="44" id="pbv-rq-djV">
4244
<variation key="heightClass=compact" constant="32"/>
4345
</constraint>
4446
</constraints>
@@ -53,7 +55,7 @@
5355
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
5456
<constraints>
5557
<constraint firstItem="hXU-Ao-dOU" firstAttribute="bottom" secondItem="ACe-re-oFh" secondAttribute="bottom" id="1sq-ne-PH6"/>
56-
<constraint firstItem="ACe-re-oFh" firstAttribute="top" secondItem="i5M-Pr-FkT" secondAttribute="top" id="61k-oM-FiK"/>
58+
<constraint firstItem="ACe-re-oFh" firstAttribute="top" secondItem="8Yz-dG-1gs" secondAttribute="top" id="61k-oM-FiK"/>
5759
<constraint firstAttribute="trailing" secondItem="ACe-re-oFh" secondAttribute="trailing" id="LbD-x0-voz"/>
5860
<constraint firstItem="hXU-Ao-dOU" firstAttribute="leading" secondItem="ACe-re-oFh" secondAttribute="leading" id="OT5-Bz-EGP"/>
5961
<constraint firstAttribute="trailing" secondItem="cLv-KU-yiY" secondAttribute="trailing" id="QgX-Ws-X4p"/>
@@ -62,9 +64,10 @@
6264
<constraint firstItem="ACe-re-oFh" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" id="gpl-Jq-zIT"/>
6365
<constraint firstItem="cLv-KU-yiY" firstAttribute="top" secondItem="ACe-re-oFh" secondAttribute="bottom" id="k9g-DN-MkA"/>
6466
<constraint firstItem="cLv-KU-yiY" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" id="kzI-nD-sc9"/>
65-
<constraint firstItem="hXU-Ao-dOU" firstAttribute="top" secondItem="ACe-re-oFh" secondAttribute="top" id="oOl-rT-72u"/>
67+
<constraint firstItem="hXU-Ao-dOU" firstAttribute="top" secondItem="i5M-Pr-FkT" secondAttribute="top" id="oOl-rT-72u"/>
6668
<constraint firstAttribute="bottom" secondItem="cLv-KU-yiY" secondAttribute="bottom" id="wB7-Ia-YSG"/>
6769
</constraints>
70+
<viewLayoutGuide key="safeArea" id="8Yz-dG-1gs"/>
6871
<variation key="default">
6972
<mask key="constraints">
7073
<exclude reference="aIU-rj-GNv"/>

YangMingShan/YMSPhotoPicker/Private/YMSSingleMediaViewController.xib

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2-
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="11762" systemVersion="15G1212" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="13196" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
33
<device id="retina4_7" orientation="portrait">
44
<adaptation id="fullscreen"/>
55
</device>
66
<dependencies>
77
<deployment identifier="iOS"/>
8-
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="11757"/>
8+
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13174"/>
9+
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
910
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
1011
</dependencies>
1112
<objects>
@@ -71,6 +72,7 @@
7172
<constraint firstItem="JlU-u3-gc1" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" id="k0g-vv-hB9"/>
7273
</constraints>
7374
<nil key="simulatedTopBarMetrics"/>
75+
<viewLayoutGuide key="safeArea" id="n0Z-nE-Six"/>
7476
<point key="canvasLocation" x="-346" y="40"/>
7577
</view>
7678
</objects>

YangMingShan/YMSPhotoPicker/Public/YMSPhotoPickerViewController.m

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ @interface YMSPhotoPickerViewController ()<UICollectionViewDataSource, UICollect
3030
}
3131

3232
@property (nonatomic, weak) IBOutlet UINavigationBar *navigationBar;
33+
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *navigationBarTopConstraint;
3334
@property (nonatomic, weak) IBOutlet UIView *navigationBarBackgroundView;
3435
@property (nonatomic, weak) IBOutlet UICollectionView *photoCollectionView;
3536
@property (nonatomic, strong) PHImageManager *imageManager;
@@ -111,6 +112,8 @@ - (void)viewDidLoad
111112
[self updateViewWithCollectionItem:[self.collectionItems firstObject]];
112113

113114
self.cellPortraitSize = self.cellLandscapeSize = CGSizeZero;
115+
116+
[self adjustStatusBarSpace];
114117
}
115118

116119
- (void)viewWillAppear:(BOOL)animated
@@ -129,6 +132,13 @@ - (void)viewWillTransitionToSize:(CGSize)size withTransitionCoordinator:(id <UIV
129132
{
130133
[super viewWillTransitionToSize:size withTransitionCoordinator:coordinator];
131134
[self.photoCollectionView.collectionViewLayout invalidateLayout];
135+
[self adjustStatusBarSpace];
136+
}
137+
138+
- (void)viewSafeAreaInsetsDidChange
139+
{
140+
[super viewSafeAreaInsetsDidChange];
141+
[self setupCellSize];
132142
}
133143

134144
- (UIStatusBarStyle)preferredStatusBarStyle
@@ -634,7 +644,11 @@ - (void)setupCellSize
634644
self.cellPortraitSize = CGSizeMake(size, size);
635645

636646
// Caculate size for landsacpe mode
637-
arrangementLength = MAX(CGRectGetWidth(self.view.frame), CGRectGetHeight(self.view.frame));
647+
CGFloat safeAreaInsets = 0;
648+
if (@available(iOS 11.0, *)) {
649+
safeAreaInsets = self.view.safeAreaInsets.left + self.view.safeAreaInsets.right;
650+
}
651+
arrangementLength = MAX(CGRectGetWidth(self.view.frame), CGRectGetHeight(self.view.frame)) - safeAreaInsets;
638652
NSUInteger numberOfPhotoColumnsInLandscape = (arrangementLength - sectionInset.left + sectionInset.right)/size;
639653
totalInteritemSpacing = MAX((numberOfPhotoColumnsInLandscape - 1), 0) * minimumInteritemSpacing;
640654
totalHorizontalSpacing = totalInteritemSpacing + sectionInset.left + sectionInset.right;
@@ -647,6 +661,14 @@ - (BOOL)shouldOrderSelection
647661
return self.configuration.sortingType == YMSPhotoPickerSortingTypeSelection;
648662
}
649663

664+
- (void)adjustStatusBarSpace
665+
{
666+
if (![self.view respondsToSelector:@selector(safeAreaInsets)]) {
667+
CGFloat space = UIDeviceOrientationIsLandscape(UIDevice.currentDevice.orientation) ? 0 : 20;
668+
self.navigationBarTopConstraint.constant = space;
669+
}
670+
}
671+
650672
#pragma mark - PHPhotoLibraryChangeObserver
651673

652674
- (void)photoLibraryDidChange:(PHChange *)changeInstance {

YangMingShan/YMSPhotoPicker/Public/YMSPhotoPickerViewController.xib

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
1-
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2-
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="11762" systemVersion="15G1217" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="13196" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
33
<device id="retina4_7" orientation="portrait">
44
<adaptation id="fullscreen"/>
55
</device>
66
<dependencies>
77
<deployment identifier="iOS"/>
8-
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="11757"/>
8+
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13174"/>
9+
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
910
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
1011
</dependencies>
1112
<objects>
1213
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="YMSPhotoPickerViewController">
1314
<connections>
1415
<outlet property="navigationBar" destination="Hjz-l4-ipX" id="D2j-M2-g4Y"/>
1516
<outlet property="navigationBarBackgroundView" destination="QRP-cu-IBQ" id="OjV-S8-cB4"/>
17+
<outlet property="navigationBarTopConstraint" destination="wcO-ae-iNw" id="vcP-0V-eqt"/>
1618
<outlet property="photoCollectionView" destination="4eg-zN-avL" id="h9q-2l-7iJ"/>
1719
<outlet property="view" destination="i5M-Pr-FkT" id="sfx-zR-JGt"/>
1820
</connections>
@@ -41,9 +43,9 @@
4143
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
4244
</view>
4345
<navigationBar contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Hjz-l4-ipX">
44-
<rect key="frame" x="0.0" y="0.0" width="375" height="64"/>
46+
<rect key="frame" x="0.0" y="20" width="375" height="44"/>
4547
<constraints>
46-
<constraint firstAttribute="height" constant="64" id="cqm-7K-Unv">
48+
<constraint firstAttribute="height" constant="44" id="cqm-7K-Unv">
4749
<variation key="heightClass=compact" constant="32"/>
4850
</constraint>
4951
</constraints>
@@ -59,16 +61,17 @@
5961
<constraints>
6062
<constraint firstItem="QRP-cu-IBQ" firstAttribute="trailing" secondItem="Hjz-l4-ipX" secondAttribute="trailing" id="60y-QB-Mh5"/>
6163
<constraint firstItem="Hjz-l4-ipX" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" id="CbG-3J-QKQ"/>
62-
<constraint firstItem="4eg-zN-avL" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" id="G1o-kN-h3L"/>
64+
<constraint firstItem="4eg-zN-avL" firstAttribute="leading" secondItem="sul-zo-VoP" secondAttribute="leading" id="G1o-kN-h3L"/>
6365
<constraint firstAttribute="bottom" secondItem="4eg-zN-avL" secondAttribute="bottom" id="HY4-8g-3cg"/>
64-
<constraint firstItem="QRP-cu-IBQ" firstAttribute="top" secondItem="Hjz-l4-ipX" secondAttribute="top" id="JqE-Cg-CJi"/>
66+
<constraint firstItem="QRP-cu-IBQ" firstAttribute="top" secondItem="i5M-Pr-FkT" secondAttribute="top" id="JqE-Cg-CJi"/>
6567
<constraint firstItem="QRP-cu-IBQ" firstAttribute="bottom" secondItem="Hjz-l4-ipX" secondAttribute="bottom" id="Qg3-GE-X8W"/>
6668
<constraint firstAttribute="trailing" secondItem="Hjz-l4-ipX" secondAttribute="trailing" id="TSg-91-hAe"/>
6769
<constraint firstItem="4eg-zN-avL" firstAttribute="top" secondItem="Hjz-l4-ipX" secondAttribute="bottom" id="YyS-iM-2Nj"/>
6870
<constraint firstItem="QRP-cu-IBQ" firstAttribute="leading" secondItem="Hjz-l4-ipX" secondAttribute="leading" id="feb-Su-kDN"/>
69-
<constraint firstAttribute="trailing" secondItem="4eg-zN-avL" secondAttribute="trailing" id="tJj-hI-9JX"/>
70-
<constraint firstItem="Hjz-l4-ipX" firstAttribute="top" secondItem="i5M-Pr-FkT" secondAttribute="top" id="wcO-ae-iNw"/>
71+
<constraint firstItem="sul-zo-VoP" firstAttribute="trailing" secondItem="4eg-zN-avL" secondAttribute="trailing" id="tJj-hI-9JX"/>
72+
<constraint firstItem="Hjz-l4-ipX" firstAttribute="top" secondItem="sul-zo-VoP" secondAttribute="top" id="wcO-ae-iNw"/>
7173
</constraints>
74+
<viewLayoutGuide key="safeArea" id="sul-zo-VoP"/>
7275
</view>
7376
</objects>
7477
</document>

YangMingShanDemo.xcodeproj/project.pbxproj

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@
6969
519140DF1D05571A002B4C5B /* YMSPhotoPickerAssets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 51F2EEE81CEC4D5F006DFC4B /* YMSPhotoPickerAssets.xcassets */; };
7070
51F2EEE91CEC4D5F006DFC4B /* YMSPhotoPickerAssets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 51F2EEE81CEC4D5F006DFC4B /* YMSPhotoPickerAssets.xcassets */; };
7171
51FF32391D129D020029197B /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 51FF32291D129D020029197B /* Assets.xcassets */; };
72+
8B89087A1FA8967C006CD7F0 /* YMSPlayerPreviewView.m in Sources */ = {isa = PBXBuildFile; fileRef = 01B081AE1E1D501000137F96 /* YMSPlayerPreviewView.m */; };
7273
/* End PBXBuildFile section */
7374

7475
/* Begin PBXContainerItemProxy section */
@@ -590,6 +591,7 @@
590591
51687A2D1D335D080071643B /* YMSPhotoCell.m in Sources */,
591592
51687A261D335D080071643B /* YMSPhotoPickerTheme.m in Sources */,
592593
51687A291D335D080071643B /* YMSAlbumPickerViewController.m in Sources */,
594+
8B89087A1FA8967C006CD7F0 /* YMSPlayerPreviewView.m in Sources */,
593595
51687A271D335D080071643B /* YMSAlbumCell.m in Sources */,
594596
01B081A81E1BF28300137F96 /* YMSVideoCell.m in Sources */,
595597
511BC61B1D13B33D00738FD4 /* DemoImageViewCell.swift in Sources */,
@@ -738,11 +740,14 @@
738740
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
739741
CODE_SIGN_IDENTITY = "iPhone Developer";
740742
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
743+
CODE_SIGN_STYLE = Manual;
741744
DEVELOPMENT_TEAM = "";
742745
INFOPLIST_FILE = "$(SRCROOT)/YangMingShanDemo/ObjC/Info.plist";
743746
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
744747
PRODUCT_BUNDLE_IDENTIFIER = com.yahoo.YangMingShanDemo;
745748
PRODUCT_NAME = YangMingShanDemo;
749+
PROVISIONING_PROFILE = "";
750+
PROVISIONING_PROFILE_SPECIFIER = "";
746751
SWIFT_VERSION = 3.0;
747752
};
748753
name = Debug;
@@ -753,11 +758,13 @@
753758
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
754759
CODE_SIGN_IDENTITY = "iPhone Developer";
755760
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
761+
CODE_SIGN_STYLE = Manual;
756762
DEVELOPMENT_TEAM = "";
757763
INFOPLIST_FILE = "$(SRCROOT)/YangMingShanDemo/ObjC/Info.plist";
758764
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
759765
PRODUCT_BUNDLE_IDENTIFIER = com.yahoo.YangMingShanDemo;
760766
PRODUCT_NAME = YangMingShanDemo;
767+
PROVISIONING_PROFILE_SPECIFIER = "";
761768
SWIFT_VERSION = 3.0;
762769
};
763770
name = Release;
@@ -815,11 +822,14 @@
815822
buildSettings = {
816823
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
817824
CODE_SIGN_IDENTITY = "iPhone Developer";
825+
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
826+
CODE_SIGN_STYLE = Manual;
818827
DEVELOPMENT_TEAM = "";
819828
INFOPLIST_FILE = "$(SRCROOT)/YangMingShanDemo/Swift/Info.plist";
820829
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
821830
PRODUCT_BUNDLE_IDENTIFIER = com.yahoo.YangMingShanDemo;
822831
PRODUCT_NAME = YangMingShanDemo;
832+
PROVISIONING_PROFILE_SPECIFIER = "";
823833
SWIFT_OBJC_BRIDGING_HEADER = "YangMingShanDemo/Swift/YangMingShanDemo-Bridging-Header.h";
824834
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
825835
SWIFT_VERSION = 3.0;
@@ -831,11 +841,14 @@
831841
buildSettings = {
832842
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
833843
CODE_SIGN_IDENTITY = "iPhone Developer";
844+
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
845+
CODE_SIGN_STYLE = Manual;
834846
DEVELOPMENT_TEAM = "";
835847
INFOPLIST_FILE = "$(SRCROOT)/YangMingShanDemo/Swift/Info.plist";
836848
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
837849
PRODUCT_BUNDLE_IDENTIFIER = com.yahoo.YangMingShanDemo;
838850
PRODUCT_NAME = YangMingShanDemo;
851+
PROVISIONING_PROFILE_SPECIFIER = "";
839852
SWIFT_OBJC_BRIDGING_HEADER = "YangMingShanDemo/Swift/YangMingShanDemo-Bridging-Header.h";
840853
SWIFT_VERSION = 3.0;
841854
};

0 commit comments

Comments
 (0)