Skip to content

Commit 8b032c3

Browse files
authored
fix(ios): add LaunchScreen.storyboard to iOS project template, fix#9853 (#9896)
* fix(ios): add LaunchScreen storyboard file * chore: add changelog
1 parent adac218 commit 8b032c3

3 files changed

Lines changed: 37 additions & 0 deletions

File tree

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'tauri-cli': 'patch:enhance'
3+
'@tauri-apps/cli': 'patch:enhance'
4+
---
5+
6+
Add a blank LaunchScreen.storyboard to the iOS project init template to pass the App Store validation.
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="17150" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
3+
<dependencies>
4+
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="17122"/>
5+
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
6+
<capability name="System colors in document resources" minToolsVersion="11.0"/>
7+
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
8+
</dependencies>
9+
<scenes>
10+
<!--View Controller-->
11+
<scene sceneID="s0d-6b-0kx">
12+
<objects>
13+
<viewController id="Y6W-OH-hqX" sceneMemberID="viewController">
14+
<view key="view" contentMode="scaleToFill" id="5EZ-qb-Rvc">
15+
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
16+
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
17+
<viewLayoutGuide key="safeArea" id="vDu-zF-Fre"/>
18+
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
19+
</view>
20+
</viewController>
21+
<placeholder placeholderIdentifier="IBFirstResponder" id="Ief-a0-LHa" userLabel="First Responder" customClass="UIResponder" sceneMemberID="firstResponder"/>
22+
</objects>
23+
</scene>
24+
</scenes>
25+
<resources>
26+
<systemColor name="systemBackgroundColor">
27+
<color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
28+
</systemColor>
29+
</resources>
30+
</document>

tooling/cli/templates/mobile/ios/project.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ targets:
4242
- {{prefix-path this}}{{/each}}
4343
{{~#each ios-additional-targets}}
4444
- path: {{prefix-path this}}{{/each}}
45+
- path: LaunchScreen.storyboard
4546
info:
4647
path: {{app.name}}_iOS/Info.plist
4748
properties:

0 commit comments

Comments
 (0)