Skip to content

Commit

Permalink
Upgrade project and testcases to use Xcode 11.1 and iOS 13.1 SDKs
Browse files Browse the repository at this point in the history
  • Loading branch information
svanderburg committed Oct 13, 2019
1 parent 5b5416c commit ef4ef24
Show file tree
Hide file tree
Showing 9 changed files with 60 additions and 59 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,16 @@ Test cases
The `tests/` sub folder contains a collection of testcases that can be used
to validate the iOS build functionality.

Troubleshooting
===============
In some rare cases, it may happen that after a failure, changes are not picked
up. Most likely, this is caused by a derived data cache that Xcode maintains.
To wipe it you can run:

```bash
$ rm -rf ~/Library/Developer/Xcode/DerivedData
```

License
=======
The contents of this package (except for the iOS example project) is covered by
Expand Down
4 changes: 2 additions & 2 deletions tests/deployment/default.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{ nixpkgs ? <nixpkgs>
, xcodeVersion ? "10.1"
, xcodeVersion ? "11.1"
, xcodeBaseDir ? "/Applications/Xcode.app"
, sdkVersion ? "12.1"
, sdkVersion ? "13.1"
, rename ? false
, newName ? "Renamed"
, newId ? "renamedapp"
Expand Down
19 changes: 11 additions & 8 deletions tests/src/HelloWorld/HelloWorld.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
/* End PBXContainerItemProxy section */

/* Begin PBXFileReference section */
C5195E672353B70F0041AA3F /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/MainStoryboard_iPhone.storyboard; sourceTree = "<group>"; };
C5195E682353B7100041AA3F /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/MainStoryboard_iPad.storyboard; sourceTree = "<group>"; };
C51D4E531684AC0700B7E82B /* Icon.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Icon.png; sourceTree = "<group>"; };
C51D4E561684AC1400B7E82B /* Icon-72.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Icon-72.png"; sourceTree = "<group>"; };
C5F1A6DF165F95CF00C44F2D /* HelloWorld.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = HelloWorld.app; sourceTree = BUILT_PRODUCTS_DIR; };
Expand All @@ -53,8 +55,6 @@
C5F1A6F5165F95CF00C44F2D /* Default.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Default.png; sourceTree = "<group>"; };
C5F1A6F7165F95CF00C44F2D /* [email protected] */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "[email protected]"; sourceTree = "<group>"; };
C5F1A6F9165F95CF00C44F2D /* [email protected] */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "[email protected]"; sourceTree = "<group>"; };
C5F1A6FC165F95CF00C44F2D /* en */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = en; path = en.lproj/MainStoryboard_iPhone.storyboard; sourceTree = "<group>"; };
C5F1A6FF165F95CF00C44F2D /* en */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = en; path = en.lproj/MainStoryboard_iPad.storyboard; sourceTree = "<group>"; };
C5F1A701165F95CF00C44F2D /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = "<group>"; };
C5F1A702165F95CF00C44F2D /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = "<group>"; };
C5F1A709165F95CF00C44F2D /* HelloWorldTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = HelloWorldTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
Expand Down Expand Up @@ -211,7 +211,7 @@
isa = PBXProject;
attributes = {
LastTestingUpgradeCheck = 0720;
LastUpgradeCheck = 1010;
LastUpgradeCheck = 1110;
ORGANIZATIONNAME = "My Team";
TargetAttributes = {
C5F1A6DE165F95CF00C44F2D = {
Expand All @@ -224,10 +224,11 @@
};
buildConfigurationList = C5F1A6D9165F95CF00C44F2D /* Build configuration list for PBXProject "HelloWorld" */;
compatibilityVersion = "Xcode 3.2";
developmentRegion = English;
developmentRegion = en;
hasScannedForEncodings = 0;
knownRegions = (
en,
Base,
);
mainGroup = C5F1A6D4165F95CF00C44F2D;
productRefGroup = C5F1A6E0165F95CF00C44F2D /* Products */;
Expand Down Expand Up @@ -323,15 +324,15 @@
C5F1A6FB165F95CF00C44F2D /* MainStoryboard_iPhone.storyboard */ = {
isa = PBXVariantGroup;
children = (
C5F1A6FC165F95CF00C44F2D /* en */,
C5195E672353B70F0041AA3F /* Base */,
);
name = MainStoryboard_iPhone.storyboard;
sourceTree = "<group>";
};
C5F1A6FE165F95CF00C44F2D /* MainStoryboard_iPad.storyboard */ = {
isa = PBXVariantGroup;
children = (
C5F1A6FF165F95CF00C44F2D /* en */,
C5195E682353B7100041AA3F /* Base */,
);
name = MainStoryboard_iPad.storyboard;
sourceTree = "<group>";
Expand All @@ -351,6 +352,7 @@
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_OBJC_ARC = YES;
Expand Down Expand Up @@ -391,7 +393,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 12.1;
IPHONEOS_DEPLOYMENT_TARGET = 13.1;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
TARGETED_DEVICE_FAMILY = "1,2";
Expand All @@ -402,6 +404,7 @@
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_OBJC_ARC = YES;
Expand Down Expand Up @@ -434,7 +437,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 12.1;
IPHONEOS_DEPLOYMENT_TARGET = 13.1;
OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1";
SDKROOT = iphoneos;
TARGETED_DEVICE_FAMILY = "1,2";
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1010"
LastUpgradeVersion = "1110"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand All @@ -27,6 +27,15 @@
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "C5F1A6DE165F95CF00C44F2D"
BuildableName = "HelloWorld.app"
BlueprintName = "HelloWorld"
ReferencedContainer = "container:HelloWorld.xcodeproj">
</BuildableReference>
</MacroExpansion>
<Testables>
<TestableReference
skipped = "NO">
Expand All @@ -39,17 +48,6 @@
</BuildableReference>
</TestableReference>
</Testables>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "C5F1A6DE165F95CF00C44F2D"
BuildableName = "HelloWorld.app"
BlueprintName = "HelloWorld"
ReferencedContainer = "container:HelloWorld.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
Expand All @@ -71,8 +69,6 @@
ReferencedContainer = "container:HelloWorld.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,56 +1,65 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="2.0" toolsVersion="2843" systemVersion="11G63" targetRuntime="iOS.CocoaTouch.iPad" propertyAccessControl="none" useAutolayout="YES" initialViewController="2">
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="15400" targetRuntime="iOS.CocoaTouch.iPad" propertyAccessControl="none" useAutolayout="YES" colorMatched="YES" initialViewController="2">
<device id="ipad9_7" orientation="portrait" layout="fullscreen" appearance="light"/>
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="1929"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="15404"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<scenes>
<!--View Controller-->
<scene sceneID="4">
<objects>
<viewController id="2" customClass="ViewController" sceneMemberID="viewController">
<layoutGuides>
<viewControllerLayoutGuide type="top" id="eXl-10-zWb"/>
<viewControllerLayoutGuide type="bottom" id="Ddh-tW-DhJ"/>
</layoutGuides>
<view key="view" contentMode="scaleToFill" id="5">
<rect key="frame" x="0.0" y="20" width="768" height="1004"/>
<rect key="frame" x="0.0" y="0.0" width="768" height="1024"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<textField opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" borderStyle="roundedRect" placeholder="Your Name" textAlignment="center" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="7Vo-fN-xbu">
<rect key="frame" x="20" y="20" width="728" height="34"/>
<color key="textColor" systemColor="labelColor" cocoaTouchSystemColor="darkTextColor"/>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<textInputTraits key="textInputTraits" autocapitalizationType="words" returnKeyType="done"/>
<connections>
<outlet property="delegate" destination="2" id="788-mh-Q29"/>
</connections>
</textField>
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" text="Label" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="a7I-85-jJv">
<rect key="frame" x="20" y="422" width="728" height="20.5"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
<nil key="highlightedColor"/>
</label>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="kI3-6J-b0r">
<rect key="frame" x="347.5" y="939" width="73" height="30"/>
<constraints>
<constraint firstAttribute="width" constant="73" id="16M-X4-3CX"/>
</constraints>
<fontDescription key="fontDescription" type="boldSystem" pointSize="15"/>
<state key="normal" title="Hello">
<color key="titleColor" red="0.19607843459999999" green="0.30980393290000002" blue="0.52156865600000002" alpha="1" colorSpace="calibratedRGB"/>
<color key="titleShadowColor" white="0.5" alpha="1" colorSpace="calibratedWhite"/>
<color key="titleShadowColor" red="0.5" green="0.5" blue="0.5" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</state>
<state key="highlighted">
<color key="titleColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<color key="titleColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</state>
<connections>
<action selector="changeGreeting:" destination="2" eventType="touchUpInside" id="Nf7-bt-mbz"/>
</connections>
</button>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstAttribute="bottom" secondItem="kI3-6J-b0r" secondAttribute="bottom" constant="55" id="Al9-pb-a30"/>
<constraint firstAttribute="trailing" secondItem="a7I-85-jJv" secondAttribute="trailing" constant="20" symbolic="YES" type="default" id="FfA-25-3Nz"/>
<constraint firstItem="a7I-85-jJv" firstAttribute="leading" secondItem="5" secondAttribute="leading" constant="20" symbolic="YES" type="default" id="GQ1-Ke-PsQ"/>
<constraint firstItem="7Vo-fN-xbu" firstAttribute="leading" secondItem="5" secondAttribute="leading" constant="20" symbolic="YES" type="default" id="HLZ-Nd-F0c"/>
<constraint firstAttribute="trailing" secondItem="7Vo-fN-xbu" secondAttribute="trailing" constant="20" symbolic="YES" type="default" id="Kmg-PJ-bXJ"/>
<constraint firstItem="kI3-6J-b0r" firstAttribute="centerX" secondItem="a7I-85-jJv" secondAttribute="centerX" type="default" id="R8q-N7-420"/>
<constraint firstAttribute="trailing" secondItem="a7I-85-jJv" secondAttribute="trailing" constant="20" symbolic="YES" id="FfA-25-3Nz"/>
<constraint firstItem="a7I-85-jJv" firstAttribute="leading" secondItem="5" secondAttribute="leading" constant="20" symbolic="YES" id="GQ1-Ke-PsQ"/>
<constraint firstItem="7Vo-fN-xbu" firstAttribute="leading" secondItem="5" secondAttribute="leading" constant="20" symbolic="YES" id="HLZ-Nd-F0c"/>
<constraint firstAttribute="trailing" secondItem="7Vo-fN-xbu" secondAttribute="trailing" constant="20" symbolic="YES" id="Kmg-PJ-bXJ"/>
<constraint firstItem="kI3-6J-b0r" firstAttribute="centerX" secondItem="a7I-85-jJv" secondAttribute="centerX" id="R8q-N7-420"/>
<constraint firstItem="a7I-85-jJv" firstAttribute="top" secondItem="5" secondAttribute="top" constant="422" id="V1C-WX-6AT"/>
<constraint firstItem="7Vo-fN-xbu" firstAttribute="top" secondItem="5" secondAttribute="top" constant="20" symbolic="YES" type="default" id="rAV-sJ-045"/>
<constraint firstItem="7Vo-fN-xbu" firstAttribute="top" secondItem="5" secondAttribute="top" constant="20" symbolic="YES" id="rAV-sJ-045"/>
</constraints>
</view>
<connections>
Expand All @@ -60,24 +69,7 @@
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="3" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="25" y="29"/>
</scene>
</scenes>
<classes>
<class className="NSLayoutConstraint" superclassName="NSObject">
<source key="sourceIdentifier" type="project" relativePath="./Classes/NSLayoutConstraint.h"/>
</class>
<class className="ViewController" superclassName="UIViewController">
<source key="sourceIdentifier" type="project" relativePath="./Classes/ViewController.h"/>
<relationships>
<relationship kind="action" name="changeGreeting:"/>
<relationship kind="outlet" name="label" candidateClass="UILabel"/>
<relationship kind="outlet" name="textField" candidateClass="UITextField"/>
</relationships>
</class>
</classes>
<simulatedMetricsContainer key="defaultSimulatedMetrics">
<simulatedStatusBarMetrics key="statusBar" statusBarStyle="blackTranslucent"/>
<simulatedOrientationMetrics key="orientation"/>
<simulatedScreenMetrics key="destination"/>
</simulatedMetricsContainer>
</document>
</document>
2 changes: 1 addition & 1 deletion xcodeenv/build-app.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{stdenv, composeXcodeWrapper}:
{ name
, src
, sdkVersion ? "12.1"
, sdkVersion ? "13.1"
, target ? null
, configuration ? null
, scheme ? null
Expand Down
2 changes: 1 addition & 1 deletion xcodeenv/compose-xcodewrapper.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{stdenv}:
{version ? "10.1", xcodeBaseDir ? "/Applications/Xcode.app"}:
{version ? "11.1", xcodeBaseDir ? "/Applications/Xcode.app"}:

assert stdenv.isDarwin;

Expand Down

0 comments on commit ef4ef24

Please sign in to comment.