Skip to content

Commit cdc02f8

Browse files
committed
Hope this will fix Carthage.
1 parent d2dc092 commit cdc02f8

File tree

8 files changed

+12
-154
lines changed

8 files changed

+12
-154
lines changed

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
All notable changes to this project will be documented in this file.
44

5+
## [2.0.1](https://github.com/sinarionn/ReusableView/releases/tag/2.0.0)
6+
7+
Project fixed for Carthage support.
8+
9+
510
## [2.0.0](https://github.com/sinarionn/ReusableView/releases/tag/2.0.0)
611

712
Naming changes.

Plists/ReusableView.plist

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<key>CFBundlePackageType</key>
1616
<string>FMWK</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>2.0.0</string>
18+
<string>2.0.1</string>
1919
<key>CFBundleSignature</key>
2020
<string>????</string>
2121
<key>CFBundleVersion</key>

ReusableView.podspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
Pod::Spec.new do |s|
33
s.name = "ReusableView"
4-
s.version = "2.0.0"
4+
s.version = "2.0.1"
55
s.summary = "Reusable and NonReusable viewModel containers"
66

77
s.homepage = "https://github.com/sinarionn/ReusableView"

ReusableView.xcodeproj/project.pbxproj

-5
Original file line numberDiff line numberDiff line change
@@ -770,12 +770,10 @@
770770
GCC_C_LANGUAGE_STANDARD = gnu99;
771771
INFOPLIST_FILE = Plists/ReusableView.plist;
772772
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
773-
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
774773
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
775774
MTL_ENABLE_DEBUG_INFO = YES;
776775
PRODUCT_BUNDLE_IDENTIFIER = sinarionn.ReusableView;
777776
PRODUCT_NAME = "$(TARGET_NAME)";
778-
SDKROOT = iphoneos;
779777
SKIP_INSTALL = YES;
780778
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
781779
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
@@ -794,7 +792,6 @@
794792
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
795793
CODE_SIGN_IDENTITY = "";
796794
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "";
797-
COPY_PHASE_STRIP = NO;
798795
DEFINES_MODULE = YES;
799796
DEVELOPMENT_TEAM = "";
800797
DYLIB_COMPATIBILITY_VERSION = 1;
@@ -803,12 +800,10 @@
803800
GCC_C_LANGUAGE_STANDARD = gnu99;
804801
INFOPLIST_FILE = Plists/ReusableView.plist;
805802
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
806-
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
807803
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
808804
MTL_ENABLE_DEBUG_INFO = NO;
809805
PRODUCT_BUNDLE_IDENTIFIER = sinarionn.ReusableView;
810806
PRODUCT_NAME = "$(TARGET_NAME)";
811-
SDKROOT = iphoneos;
812807
SKIP_INSTALL = YES;
813808
SWIFT_VERSION = 4.0;
814809
VERSION_INFO_PREFIX = "";

ReusableView.xcodeproj/xcshareddata/xcschemes/ReusableView.xcscheme

+2-4
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,8 @@
2626
buildConfiguration = "Debug"
2727
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
2828
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29-
language = ""
30-
shouldUseLaunchSchemeArgsEnv = "YES"
31-
codeCoverageEnabled = "YES">
29+
codeCoverageEnabled = "YES"
30+
shouldUseLaunchSchemeArgsEnv = "YES">
3231
<Testables>
3332
<TestableReference
3433
skipped = "NO">
@@ -57,7 +56,6 @@
5756
buildConfiguration = "Debug"
5857
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
5958
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
60-
language = ""
6159
launchStyle = "0"
6260
useCustomWorkingDirectory = "NO"
6361
ignoresPersistentStateOnLaunch = "NO"

ReusableView.xcodeproj/xcshareddata/xcschemes/TestApp.xcscheme

-84
This file was deleted.

ReusableView.xcodeproj/xcshareddata/xcschemes/Tests.xcscheme

-58
This file was deleted.

Sources/ViewModelHolderType.swift

+3-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ public extension ViewModelHolderType {
4545
import UIKit
4646
extension ViewModelHolderType where Self: UIViewController {
4747
public func prepareForUsage() {
48-
loadViewIfNeeded()
48+
if #available(iOS 9.0, *) {
49+
loadViewIfNeeded()
50+
}
4951
view.layoutIfNeeded()
5052
}
5153
}

0 commit comments

Comments
 (0)