Skip to content

Commit 43cd12d

Browse files
committed
Workaround for IBDesignable symbol issue when installed using CocoaPods
1 parent 86a5734 commit 43cd12d

File tree

4 files changed

+30
-21
lines changed

4 files changed

+30
-21
lines changed

Example/Example/Base.lproj/LaunchScreen.storyboard

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2-
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="9532" systemVersion="15D21" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" initialViewController="IdP-BZ-jEu">
2+
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="11762" systemVersion="15G1212" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="IdP-BZ-jEu">
3+
<device id="retina4_7" orientation="portrait">
4+
<adaptation id="fullscreen"/>
5+
</device>
36
<dependencies>
47
<deployment identifier="iOS"/>
5-
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="9530"/>
8+
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="11757"/>
9+
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
610
</dependencies>
711
<scenes>
812
<!--View Controller-->
@@ -14,9 +18,9 @@
1418
<viewControllerLayoutGuide type="bottom" id="xb3-aO-Qok"/>
1519
</layoutGuides>
1620
<view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
17-
<rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
21+
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
1822
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
19-
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
23+
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
2024
</view>
2125
<navigationItem key="navigationItem" id="wKR-dx-tdo"/>
2226
</viewController>

Example/Example/Main.storyboard

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,25 @@
11
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2-
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="9532" systemVersion="15D21" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="XY5-gz-UXC">
2+
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="11762" systemVersion="15G1212" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="XY5-gz-UXC">
3+
<device id="retina4_7" orientation="portrait">
4+
<adaptation id="fullscreen"/>
5+
</device>
36
<dependencies>
47
<deployment identifier="iOS"/>
5-
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="9530"/>
8+
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="11757"/>
69
<capability name="Constraints to layout margins" minToolsVersion="6.0"/>
10+
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
711
</dependencies>
812
<scenes>
913
<!--ICInputAccessory-->
1014
<scene sceneID="ssv-qC-OfH">
1115
<objects>
1216
<tableViewController id="0fq-Xw-Z0G" customClass="StoryboardViewController" customModule="Example" customModuleProvider="target" sceneMemberID="viewController">
1317
<tableView key="view" clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" dataMode="static" style="grouped" separatorStyle="default" allowsSelection="NO" rowHeight="44" sectionHeaderHeight="18" sectionFooterHeight="18" id="ZTV-zA-HhW">
14-
<rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
18+
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
1519
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
16-
<color key="backgroundColor" red="0.93725490199999995" green="0.93725490199999995" blue="0.95686274510000002" alpha="1" colorSpace="calibratedRGB"/>
20+
<color key="backgroundColor" red="0.93725490199999995" green="0.93725490199999995" blue="0.95686274510000002" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
1721
<button key="tableFooterView" opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" id="N87-CU-PrP">
18-
<rect key="frame" x="0.0" y="269.5" width="600" height="88"/>
22+
<rect key="frame" x="0.0" y="219" width="375" height="88"/>
1923
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
2024
<fontDescription key="fontDescription" type="system" pointSize="15"/>
2125
<state key="normal" title="Back to Code"/>
@@ -27,14 +31,14 @@
2731
<tableViewSection headerTitle="Dismiss Keyboard" id="tmE-Ln-PNX">
2832
<cells>
2933
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" id="hiq-lt-L5I">
30-
<rect key="frame" x="0.0" y="113.5" width="600" height="44"/>
34+
<rect key="frame" x="0.0" y="56" width="375" height="44"/>
3135
<autoresizingMask key="autoresizingMask"/>
3236
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="hiq-lt-L5I" id="dNb-Qm-7pq">
33-
<rect key="frame" x="0.0" y="0.0" width="600" height="43.5"/>
37+
<rect key="frame" x="0.0" y="0.0" width="375" height="43"/>
3438
<autoresizingMask key="autoresizingMask"/>
3539
<subviews>
3640
<textField opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" placeholder="Storyboard ICKeyboardDismissTextField" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="qdb-Ab-nYe" customClass="ICKeyboardDismissTextField" customModule="ICInputAccessory">
37-
<rect key="frame" x="18" y="12" width="564" height="20"/>
41+
<rect key="frame" x="18" y="12" width="339" height="20"/>
3842
<fontDescription key="fontDescription" type="system" pointSize="16"/>
3943
<textInputTraits key="textInputTraits"/>
4044
<connections>
@@ -54,16 +58,16 @@
5458
<tableViewSection headerTitle="Text Field with Tokens" id="dx2-iZ-OPN">
5559
<cells>
5660
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" id="nCe-ZG-eEP">
57-
<rect key="frame" x="0.0" y="207.5" width="600" height="44"/>
61+
<rect key="frame" x="0.0" y="157" width="375" height="44"/>
5862
<autoresizingMask key="autoresizingMask"/>
5963
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="nCe-ZG-eEP" id="6tu-Im-VHX">
60-
<rect key="frame" x="0.0" y="0.0" width="600" height="43.5"/>
64+
<rect key="frame" x="0.0" y="0.0" width="375" height="43"/>
6165
<autoresizingMask key="autoresizingMask"/>
6266
<subviews>
6367
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="2dP-7v-mWC" customClass="ICTokenField" customModule="ICInputAccessory">
64-
<rect key="frame" x="0.0" y="0.0" width="600" height="44"/>
65-
<color key="backgroundColor" white="0.33333333333333331" alpha="1" colorSpace="calibratedWhite"/>
66-
<color key="tintColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
68+
<rect key="frame" x="0.0" y="0.0" width="375" height="44"/>
69+
<color key="backgroundColor" red="0.33333333333333331" green="0.33333333333333331" blue="0.33333333333333331" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
70+
<color key="tintColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
6771
<userDefinedRuntimeAttributes>
6872
<userDefinedRuntimeAttribute type="string" keyPath="placeholder" value="Storyboard ICTokenField"/>
6973
<userDefinedRuntimeAttribute type="image" keyPath="icon" value="icook-iphone-input-search"/>
@@ -74,7 +78,7 @@
7478
<real key="value" value="0.0"/>
7579
</userDefinedRuntimeAttribute>
7680
<userDefinedRuntimeAttribute type="color" keyPath="textColor">
77-
<color key="value" white="1" alpha="1" colorSpace="calibratedWhite"/>
81+
<color key="value" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
7882
</userDefinedRuntimeAttribute>
7983
</userDefinedRuntimeAttributes>
8084
</view>
@@ -104,10 +108,10 @@
104108
<view contentMode="scaleToFill" id="zaj-ho-SsM" customClass="ICKeyboardDismissAccessoryView" customModule="ICInputAccessory">
105109
<rect key="frame" x="0.0" y="0.0" width="320" height="60"/>
106110
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
107-
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
111+
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
108112
<userDefinedRuntimeAttributes>
109113
<userDefinedRuntimeAttribute type="color" keyPath="buttonColor">
110-
<color key="value" red="0.0" green="0.50196081400000003" blue="1" alpha="1" colorSpace="calibratedRGB"/>
114+
<color key="value" red="0.0" green="0.50196081400000003" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
111115
</userDefinedRuntimeAttribute>
112116
</userDefinedRuntimeAttributes>
113117
</view>

Podfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ post_install do |installer|
1414
installer.pods_project.targets.each do |target|
1515
target.build_configurations.each do |config|
1616
config.build_settings["SWIFT_VERSION"] = "2.3"
17+
config.build_settings['CONFIGURATION_BUILD_DIR'] = '$PODS_CONFIGURATION_BUILD_DIR'
1718
end
1819
end
1920
end

Podfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ EXTERNAL SOURCES:
1313
SPEC CHECKSUMS:
1414
ICInputAccessory: 19865bd3efb918c22f8b7b5715566b85bc8b4577
1515

16-
PODFILE CHECKSUM: 41c0babd8a8e47d9dc4741ac44d6bb453b85139d
16+
PODFILE CHECKSUM: b125d926ec250330789d257be95f39437c2e5c9c
1717

1818
COCOAPODS: 1.1.1

0 commit comments

Comments
 (0)