diff --git a/Rakefile b/Rakefile
index 6f9cb4a..9cf7fb1 100644
--- a/Rakefile
+++ b/Rakefile
@@ -1,14 +1,14 @@
TEST_PROJ_PATH="Tests/RZUtilsTests.xcodeproj"
TEST_WORKSPACE_PATH="Tests/RZUtilsTests.xcworkspace"
-TEST_SCHEME="RZUtilsTests"
+TEST_SCHEME="RZUtilsAllTests"
#
# Install
#
namespace :install do
-
+
task :tools do
# don't care if this fails on travis
sh("brew update") rescue nil
@@ -19,7 +19,7 @@ namespace :install do
task :pods do
sh("cd Tests && pod install")
end
-
+
end
task :install do
@@ -32,7 +32,7 @@ end
#
task :test do
- sh("xctool -workspace '#{TEST_WORKSPACE_PATH}' -scheme '#{TEST_SCHEME}' -sdk iphonesimulator build test") rescue nil
+ sh("xctool -workspace '#{TEST_WORKSPACE_PATH}' -scheme '#{TEST_SCHEME}' -sdk iphonesimulator build") rescue nil
exit $?.exitstatus
end
@@ -50,17 +50,17 @@ end
#
namespace :clean do
-
+
task :pods do
sh("rm -f Tests/Podfile.lock")
sh "rm -rf Tests/Pods"
sh("rm -rf Tests/*.xcworkspace")
end
-
+
task :tests do
sh("xctool -project '#{TEST_PROJ_PATH}' -scheme '#{TEST_SCHEME}' -sdk iphonesimulator clean") rescue nil
end
-
+
end
task :clean do
diff --git a/Tests/RZHostApp/Base.lproj/LaunchScreen.xib b/Tests/RZHostApp/Base.lproj/LaunchScreen.xib
new file mode 100644
index 0000000..1290aa8
--- /dev/null
+++ b/Tests/RZHostApp/Base.lproj/LaunchScreen.xib
@@ -0,0 +1,46 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Tests/RZHostApp/Base.lproj/Main.storyboard b/Tests/RZHostApp/Base.lproj/Main.storyboard
new file mode 100644
index 0000000..a568465
--- /dev/null
+++ b/Tests/RZHostApp/Base.lproj/Main.storyboard
@@ -0,0 +1,31 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Tests/RZHostApp/Images.xcassets/AppIcon.appiconset/Contents.json b/Tests/RZHostApp/Images.xcassets/AppIcon.appiconset/Contents.json
new file mode 100644
index 0000000..36d2c80
--- /dev/null
+++ b/Tests/RZHostApp/Images.xcassets/AppIcon.appiconset/Contents.json
@@ -0,0 +1,68 @@
+{
+ "images" : [
+ {
+ "idiom" : "iphone",
+ "size" : "29x29",
+ "scale" : "2x"
+ },
+ {
+ "idiom" : "iphone",
+ "size" : "29x29",
+ "scale" : "3x"
+ },
+ {
+ "idiom" : "iphone",
+ "size" : "40x40",
+ "scale" : "2x"
+ },
+ {
+ "idiom" : "iphone",
+ "size" : "40x40",
+ "scale" : "3x"
+ },
+ {
+ "idiom" : "iphone",
+ "size" : "60x60",
+ "scale" : "2x"
+ },
+ {
+ "idiom" : "iphone",
+ "size" : "60x60",
+ "scale" : "3x"
+ },
+ {
+ "idiom" : "ipad",
+ "size" : "29x29",
+ "scale" : "1x"
+ },
+ {
+ "idiom" : "ipad",
+ "size" : "29x29",
+ "scale" : "2x"
+ },
+ {
+ "idiom" : "ipad",
+ "size" : "40x40",
+ "scale" : "1x"
+ },
+ {
+ "idiom" : "ipad",
+ "size" : "40x40",
+ "scale" : "2x"
+ },
+ {
+ "idiom" : "ipad",
+ "size" : "76x76",
+ "scale" : "1x"
+ },
+ {
+ "idiom" : "ipad",
+ "size" : "76x76",
+ "scale" : "2x"
+ }
+ ],
+ "info" : {
+ "version" : 1,
+ "author" : "xcode"
+ }
+}
\ No newline at end of file
diff --git a/Tests/RZHostApp/Info.plist b/Tests/RZHostApp/Info.plist
new file mode 100644
index 0000000..8576cff
--- /dev/null
+++ b/Tests/RZHostApp/Info.plist
@@ -0,0 +1,47 @@
+
+
+
+
+ CFBundleDevelopmentRegion
+ en
+ CFBundleExecutable
+ $(EXECUTABLE_NAME)
+ CFBundleIdentifier
+ RZ.$(PRODUCT_NAME:rfc1034identifier)
+ CFBundleInfoDictionaryVersion
+ 6.0
+ CFBundleName
+ $(PRODUCT_NAME)
+ CFBundlePackageType
+ APPL
+ CFBundleShortVersionString
+ 1.0
+ CFBundleSignature
+ ????
+ CFBundleVersion
+ 1
+ LSRequiresIPhoneOS
+
+ UILaunchStoryboardName
+ LaunchScreen
+ UIMainStoryboardFile
+ Main
+ UIRequiredDeviceCapabilities
+
+ armv7
+
+ UISupportedInterfaceOrientations
+
+ UIInterfaceOrientationPortrait
+ UIInterfaceOrientationLandscapeLeft
+ UIInterfaceOrientationLandscapeRight
+
+ UISupportedInterfaceOrientations~ipad
+
+ UIInterfaceOrientationPortrait
+ UIInterfaceOrientationPortraitUpsideDown
+ UIInterfaceOrientationLandscapeLeft
+ UIInterfaceOrientationLandscapeRight
+
+
+
diff --git a/Tests/RZHostApp/RZHostAppDelegate.h b/Tests/RZHostApp/RZHostAppDelegate.h
new file mode 100644
index 0000000..13e8e03
--- /dev/null
+++ b/Tests/RZHostApp/RZHostAppDelegate.h
@@ -0,0 +1,35 @@
+//
+// RZHostAppDelegate.h
+//
+// Created by Sean O'Shea on 3/1/15.
+
+// Copyright 2014 Raizlabs and other contributors
+// http://raizlabs.com/
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+//
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+#import
+
+@interface RZHostAppDelegate : UIResponder
+
+@property (strong, nonatomic) UIWindow *window;
+
+@end
+
diff --git a/Tests/RZHostApp/RZHostAppDelegate.m b/Tests/RZHostApp/RZHostAppDelegate.m
new file mode 100644
index 0000000..4d9fcec
--- /dev/null
+++ b/Tests/RZHostApp/RZHostAppDelegate.m
@@ -0,0 +1,37 @@
+//
+// RZHostAppDelegate.m
+//
+// Created by Sean O'Shea on 3/1/15.
+
+// Copyright 2014 Raizlabs and other contributors
+// http://raizlabs.com/
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+//
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+#import "RZHostAppDelegate.h"
+
+@implementation RZHostAppDelegate
+
+- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
+ // Override point for customization after application launch.
+ return YES;
+}
+
+@end
diff --git a/Tests/RZHostApp/main.m b/Tests/RZHostApp/main.m
new file mode 100644
index 0000000..ba9e7d9
--- /dev/null
+++ b/Tests/RZHostApp/main.m
@@ -0,0 +1,35 @@
+//
+// main.m
+//
+// Created by Sean O'Shea on 3/1/15.
+
+// Copyright 2014 Raizlabs and other contributors
+// http://raizlabs.com/
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+//
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+#import
+#import "RZHostAppDelegate.h"
+
+int main(int argc, char * argv[]) {
+ @autoreleasepool {
+ return UIApplicationMain(argc, argv, nil, NSStringFromClass([RZHostAppDelegate class]));
+ }
+}
diff --git a/Tests/RZHostAppTests/Info.plist b/Tests/RZHostAppTests/Info.plist
new file mode 100644
index 0000000..53449e6
--- /dev/null
+++ b/Tests/RZHostAppTests/Info.plist
@@ -0,0 +1,24 @@
+
+
+
+
+ CFBundleDevelopmentRegion
+ en
+ CFBundleExecutable
+ $(EXECUTABLE_NAME)
+ CFBundleIdentifier
+ RZ.$(PRODUCT_NAME:rfc1034identifier)
+ CFBundleInfoDictionaryVersion
+ 6.0
+ CFBundleName
+ $(PRODUCT_NAME)
+ CFBundlePackageType
+ BNDL
+ CFBundleShortVersionString
+ 1.0
+ CFBundleSignature
+ ????
+ CFBundleVersion
+ 1
+
+
diff --git a/Tests/RZHostAppTests/RZAutoLayoutHelpersTest.m b/Tests/RZHostAppTests/RZAutoLayoutHelpersTest.m
new file mode 100644
index 0000000..b49b8e5
--- /dev/null
+++ b/Tests/RZHostAppTests/RZAutoLayoutHelpersTest.m
@@ -0,0 +1,227 @@
+//
+// RZAutoLayoutHelpersTest.m
+//
+// Created by Sean O'Shea on 3/1/15.
+
+// Copyright 2014 Raizlabs and other contributors
+// http://raizlabs.com/
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+//
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+#import
+#import
+
+#import "UIView+RZAutoLayoutHelpers.h"
+
+static CGFloat RZAutoLayoutHelpersTestContainerWidth = 1000.0f;
+static CGFloat RZAutoLayoutHelpersTestContainerHeight = 1000.0f;
+static CGFloat RZAutoLayoutHelpersTestCenterOffset = 22.0f;
+static CGFloat RZAutoLayoutHelpersTestAllowableDelta = 0.5f;
+
+@interface RZAutoLayoutHelpersContainerView : UIView
+
+@end
+
+@implementation RZAutoLayoutHelpersContainerView
+
+- (CGSize)intrinsicContentSize {
+ return CGSizeMake(RZAutoLayoutHelpersTestContainerWidth, RZAutoLayoutHelpersTestContainerHeight);
+}
+
+@end
+
+@interface RZTestViewOne : UIView
+
+@end
+
+@implementation RZTestViewOne
+
+- (CGSize)intrinsicContentSize {
+ return CGSizeMake(250.0f, 250.0f);
+}
+
+@end
+
+@interface RZTestViewTwo : UIView
+
+@end
+
+@implementation RZTestViewTwo
+
+- (CGSize)intrinsicContentSize {
+ return CGSizeMake(175.0f, 330.0f);
+}
+
+@end
+
+@interface RZUtilsTestAppTests : XCTestCase
+
+@property (nonatomic) RZAutoLayoutHelpersContainerView *containerView;
+@property (nonatomic) RZTestViewOne *testViewOne;
+@property (nonatomic) RZTestViewTwo *testViewTwo;
+
+@end
+
+@implementation RZUtilsTestAppTests
+
+- (void)setUp
+{
+ [super setUp];
+
+ self.containerView = [[RZAutoLayoutHelpersContainerView alloc] initWithFrame:CGRectMake(0.0f, 0.0f, RZAutoLayoutHelpersTestContainerWidth, RZAutoLayoutHelpersTestContainerHeight)];
+ self.containerView.translatesAutoresizingMaskIntoConstraints = NO;
+ self.testViewOne = [[RZTestViewOne alloc] init];
+ self.testViewTwo = [[RZTestViewTwo alloc] init];
+ self.testViewOne.translatesAutoresizingMaskIntoConstraints = NO;
+ self.testViewTwo.translatesAutoresizingMaskIntoConstraints = NO;
+
+ [self.containerView addSubview:self.testViewOne];
+ [self.containerView addSubview:self.testViewTwo];
+}
+
+- (void)tearDown
+{
+ [super tearDown];
+}
+
+- (void)forceConstraintsEvaluation
+{
+ [self forceConstraintsEvaluationForAllSubviewsOfView:self.containerView];
+}
+
+- (void)forceConstraintsEvaluationForAllSubviewsOfView:(UIView *)view
+{
+ for (UIView *subview in view.subviews) {
+ [self forceConstraintsEvaluationForAllSubviewsOfView:subview];
+ }
+ [view layoutIfNeeded];
+}
+
+- (void)testCenteringViews
+{
+ [self.testViewOne rz_centerHorizontallyInContainer];
+ [self.testViewOne rz_centerVerticallyInContainer];
+ [self.testViewTwo rz_centerHorizontallyInContainer];
+ [self.testViewTwo rz_centerVerticallyInContainer];
+
+ [self forceConstraintsEvaluation];
+
+ XCTAssertNotNil([self.testViewOne rz_pinnedCenterXConstraint]);
+ XCTAssertNotNil([self.testViewOne rz_pinnedCenterYConstraint]);
+ XCTAssertNotNil([self.testViewTwo rz_pinnedCenterXConstraint]);
+ XCTAssertNotNil([self.testViewTwo rz_pinnedCenterYConstraint]);
+
+ CGRect frameOne = self.testViewOne.frame;
+
+ XCTAssertEqualWithAccuracy(frameOne.origin.x, 375.0f, RZAutoLayoutHelpersTestAllowableDelta);
+ XCTAssertEqualWithAccuracy(frameOne.origin.y, 375.0f, RZAutoLayoutHelpersTestAllowableDelta);
+ XCTAssertEqualWithAccuracy(frameOne.size.width, 250.0f, RZAutoLayoutHelpersTestAllowableDelta);
+ XCTAssertEqualWithAccuracy(frameOne.size.height, 250.0f, RZAutoLayoutHelpersTestAllowableDelta);
+
+ XCTAssertEqualWithAccuracy(CGRectGetMidX(frameOne), 500.0f, RZAutoLayoutHelpersTestAllowableDelta);
+ XCTAssertEqualWithAccuracy(CGRectGetMidY(frameOne), 500.0f, RZAutoLayoutHelpersTestAllowableDelta);
+
+ CGRect frameTwo = self.testViewTwo.frame;
+
+ XCTAssertEqualWithAccuracy(frameTwo.origin.x, 412.5f, RZAutoLayoutHelpersTestAllowableDelta);
+ XCTAssertEqualWithAccuracy(frameTwo.origin.y, 335.0f, RZAutoLayoutHelpersTestAllowableDelta);
+ XCTAssertEqualWithAccuracy(frameTwo.size.width, 175.0f, RZAutoLayoutHelpersTestAllowableDelta);
+ XCTAssertEqualWithAccuracy(frameTwo.size.height, 330.0f, RZAutoLayoutHelpersTestAllowableDelta);
+
+ XCTAssertEqualWithAccuracy(CGRectGetMidX(frameTwo), 500.0f, RZAutoLayoutHelpersTestAllowableDelta);
+ XCTAssertEqualWithAccuracy(CGRectGetMidY(frameTwo), 500.0f, RZAutoLayoutHelpersTestAllowableDelta);
+}
+
+- (void)testCenteringWithOffsetViews
+{
+ [self.testViewOne rz_centerHorizontallyInContainerWithOffset:RZAutoLayoutHelpersTestCenterOffset];
+ [self.testViewOne rz_centerVerticallyInContainerWithOffset:RZAutoLayoutHelpersTestCenterOffset];
+ [self.testViewTwo rz_centerHorizontallyInContainerWithOffset:RZAutoLayoutHelpersTestCenterOffset];
+ [self.testViewTwo rz_centerVerticallyInContainerWithOffset:RZAutoLayoutHelpersTestCenterOffset];
+
+ [self forceConstraintsEvaluation];
+
+ XCTAssertNotNil([self.testViewOne rz_pinnedCenterXConstraint]);
+ XCTAssertNotNil([self.testViewOne rz_pinnedCenterYConstraint]);
+ XCTAssertNotNil([self.testViewTwo rz_pinnedCenterXConstraint]);
+ XCTAssertNotNil([self.testViewTwo rz_pinnedCenterYConstraint]);
+
+ CGRect frameOne = self.testViewOne.frame;
+
+ XCTAssertEqualWithAccuracy(frameOne.origin.x, 397.0f, RZAutoLayoutHelpersTestAllowableDelta);
+ XCTAssertEqualWithAccuracy(frameOne.origin.y, 397.0f, RZAutoLayoutHelpersTestAllowableDelta);
+ XCTAssertEqualWithAccuracy(frameOne.size.width, 250.0f, RZAutoLayoutHelpersTestAllowableDelta);
+ XCTAssertEqualWithAccuracy(frameOne.size.height, 250.0f, RZAutoLayoutHelpersTestAllowableDelta);
+
+ XCTAssertEqualWithAccuracy(CGRectGetMidX(frameOne), 522.0f, RZAutoLayoutHelpersTestAllowableDelta);
+ XCTAssertEqualWithAccuracy(CGRectGetMidY(frameOne), 522.0f, RZAutoLayoutHelpersTestAllowableDelta);
+
+ CGRect frameTwo = self.testViewTwo.frame;
+
+ XCTAssertEqualWithAccuracy(frameTwo.origin.x, 434.5f, RZAutoLayoutHelpersTestAllowableDelta);
+ XCTAssertEqualWithAccuracy(frameTwo.origin.y, 357.0f, RZAutoLayoutHelpersTestAllowableDelta);
+ XCTAssertEqualWithAccuracy(frameTwo.size.width, 175.0f, RZAutoLayoutHelpersTestAllowableDelta);
+ XCTAssertEqualWithAccuracy(frameTwo.size.height, 330.0f, RZAutoLayoutHelpersTestAllowableDelta);
+
+ XCTAssertEqualWithAccuracy(CGRectGetMidX(frameTwo), 522.0f, RZAutoLayoutHelpersTestAllowableDelta);
+ XCTAssertEqualWithAccuracy(CGRectGetMidY(frameTwo), 522.0f, RZAutoLayoutHelpersTestAllowableDelta);
+}
+
+- (void)testPinningViews {
+
+ [self.testViewOne rz_pinTopSpaceToSuperviewWithPadding:0.0f];
+ [self.testViewOne rz_pinRightSpaceToSuperviewWithPadding:0.0f];
+ [self.testViewOne rz_pinBottomSpaceToSuperviewWithPadding:0.0f];
+ [self.testViewOne rz_pinLeftSpaceToSuperviewWithPadding:0.0f];
+
+ [self.testViewTwo rz_pinTopSpaceToSuperviewWithPadding:21.0f];
+ [self.testViewTwo rz_pinRightSpaceToSuperviewWithPadding:21.0f];
+ [self.testViewTwo rz_pinBottomSpaceToSuperviewWithPadding:17.0f];
+ [self.testViewTwo rz_pinLeftSpaceToSuperviewWithPadding:17.0f];
+
+ [self forceConstraintsEvaluation];
+
+ XCTAssertNotNil([self.testViewOne rz_pinnedTopConstraint]);
+ XCTAssertNotNil([self.testViewOne rz_pinnedRightConstraint]);
+ XCTAssertNotNil([self.testViewOne rz_pinnedBottomConstraint]);
+ XCTAssertNotNil([self.testViewOne rz_pinnedLeftConstraint]);
+ XCTAssertNotNil([self.testViewTwo rz_pinnedTopConstraint]);
+ XCTAssertNotNil([self.testViewTwo rz_pinnedRightConstraint]);
+ XCTAssertNotNil([self.testViewTwo rz_pinnedBottomConstraint]);
+ XCTAssertNotNil([self.testViewTwo rz_pinnedLeftConstraint]);
+
+ CGRect frameOne = self.testViewOne.frame;
+
+ XCTAssertEqualWithAccuracy(frameOne.origin.x, 0.0f, RZAutoLayoutHelpersTestAllowableDelta);
+ XCTAssertEqualWithAccuracy(frameOne.origin.y, 0.0f, RZAutoLayoutHelpersTestAllowableDelta);
+ XCTAssertEqualWithAccuracy(frameOne.size.width, RZAutoLayoutHelpersTestContainerWidth, RZAutoLayoutHelpersTestAllowableDelta);
+ XCTAssertEqualWithAccuracy(frameOne.size.height, RZAutoLayoutHelpersTestContainerHeight, RZAutoLayoutHelpersTestAllowableDelta);
+
+ CGRect frameTwo = self.testViewTwo.frame;
+
+ XCTAssertEqualWithAccuracy(frameTwo.origin.x, 17.0f, RZAutoLayoutHelpersTestAllowableDelta);
+ XCTAssertEqualWithAccuracy(frameTwo.origin.y, 21.0f, RZAutoLayoutHelpersTestAllowableDelta);
+ XCTAssertEqualWithAccuracy(frameTwo.size.width, 962.0f, RZAutoLayoutHelpersTestAllowableDelta);
+ XCTAssertEqualWithAccuracy(frameTwo.size.height, 962.0f, RZAutoLayoutHelpersTestAllowableDelta);
+
+ XCTAssertEqualWithAccuracy(frameTwo.origin.x, 17.0f, RZAutoLayoutHelpersTestAllowableDelta);
+}
+
+@end
diff --git a/Tests/RZUtilsTests.xcodeproj/project.pbxproj b/Tests/RZUtilsTests.xcodeproj/project.pbxproj
index 6ec8de0..350ebd2 100644
--- a/Tests/RZUtilsTests.xcodeproj/project.pbxproj
+++ b/Tests/RZUtilsTests.xcodeproj/project.pbxproj
@@ -6,7 +6,28 @@
objectVersion = 46;
objects = {
+/* Begin PBXAggregateTarget section */
+ 14FB87F61ABB662E005ECA1D /* RZUtilsAllTests */ = {
+ isa = PBXAggregateTarget;
+ buildConfigurationList = 14FB87FA1ABB662E005ECA1D /* Build configuration list for PBXAggregateTarget "RZUtilsAllTests" */;
+ buildPhases = (
+ 14FB88011ABB6973005ECA1D /* ShellScript */,
+ 14FB88021ABB6AAB005ECA1D /* ShellScript */,
+ );
+ dependencies = (
+ );
+ name = RZUtilsAllTests;
+ productName = RZUtilsAllTests;
+ };
+/* End PBXAggregateTarget section */
+
/* Begin PBXBuildFile section */
+ 14D21D6F1AA316CA000765B6 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 14D21D6E1AA316CA000765B6 /* main.m */; };
+ 14D21D721AA316CA000765B6 /* RZHostAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 14D21D711AA316CA000765B6 /* RZHostAppDelegate.m */; };
+ 14D21D781AA316CA000765B6 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 14D21D761AA316CA000765B6 /* Main.storyboard */; };
+ 14D21D7A1AA316CA000765B6 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 14D21D791AA316CA000765B6 /* Images.xcassets */; };
+ 14D21D7D1AA316CA000765B6 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 14D21D7B1AA316CA000765B6 /* LaunchScreen.xib */; };
+ 14D21D891AA316CB000765B6 /* RZAutoLayoutHelpersTest.m in Sources */ = {isa = PBXBuildFile; fileRef = 14D21D881AA316CB000765B6 /* RZAutoLayoutHelpersTest.m */; };
7A175505AE684DAFB8613F72 /* libPods.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 22BAB0697B95400AAAD3740C /* libPods.a */; };
9A8D4DF4196335CC00AFAB21 /* XCTest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9A8D4DF3196335CC00AFAB21 /* XCTest.framework */; };
9A8D4DF5196335CC00AFAB21 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9A8D4DD1196335CC00AFAB21 /* Foundation.framework */; };
@@ -16,8 +37,39 @@
D4874DA119918C46003EEC4B /* RZAutoLayoutTests.m in Sources */ = {isa = PBXBuildFile; fileRef = D4874DA019918C46003EEC4B /* RZAutoLayoutTests.m */; };
/* End PBXBuildFile section */
+/* Begin PBXContainerItemProxy section */
+ 14D21D831AA316CB000765B6 /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = 9A8D4DC6196335CC00AFAB21 /* Project object */;
+ proxyType = 1;
+ remoteGlobalIDString = 14D21D691AA316CA000765B6;
+ remoteInfo = RZUtilsTestApp;
+ };
+ 14D21D931AA31A3F000765B6 /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = 9A8D4DC6196335CC00AFAB21 /* Project object */;
+ proxyType = 1;
+ remoteGlobalIDString = 9A8D4DF1196335CC00AFAB21;
+ remoteInfo = RZUtilsTests;
+ };
+/* End PBXContainerItemProxy section */
+
/* Begin PBXFileReference section */
+ 14D21D6A1AA316CA000765B6 /* RZHostApp.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = RZHostApp.app; sourceTree = BUILT_PRODUCTS_DIR; };
+ 14D21D6D1AA316CA000765B6 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
+ 14D21D6E1AA316CA000765B6 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; };
+ 14D21D701AA316CA000765B6 /* RZHostAppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = RZHostAppDelegate.h; sourceTree = ""; };
+ 14D21D711AA316CA000765B6 /* RZHostAppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = RZHostAppDelegate.m; sourceTree = ""; };
+ 14D21D771AA316CA000765B6 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
+ 14D21D791AA316CA000765B6 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; };
+ 14D21D7C1AA316CA000765B6 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; };
+ 14D21D821AA316CA000765B6 /* RZHostAppTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RZHostAppTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
+ 14D21D871AA316CB000765B6 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
+ 14D21D881AA316CB000765B6 /* RZAutoLayoutHelpersTest.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = RZAutoLayoutHelpersTest.m; sourceTree = ""; };
+ 1CFF0789A9F774D9B6D7E13D /* Pods.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = Pods.release.xcconfig; path = "Pods/Target Support Files/Pods/Pods.release.xcconfig"; sourceTree = ""; };
22BAB0697B95400AAAD3740C /* libPods.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libPods.a; sourceTree = BUILT_PRODUCTS_DIR; };
+ 6C14FC1B7EEB65A025DD17AB /* Pods.enterprise-qa.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods.enterprise-qa.xcconfig"; path = "Pods/Target Support Files/Pods/Pods.enterprise-qa.xcconfig"; sourceTree = ""; };
+ 7F351ABFC52A252FD16A17B2 /* Pods.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = Pods.debug.xcconfig; path = "Pods/Target Support Files/Pods/Pods.debug.xcconfig"; sourceTree = ""; };
9A8D4DD1196335CC00AFAB21 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
9A8D4DD3196335CC00AFAB21 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };
9A8D4DD5196335CC00AFAB21 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
@@ -28,11 +80,24 @@
9A8D4DFD196335CC00AFAB21 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; };
9A8D4EB4196336C500AFAB21 /* RZUtilsTests-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "RZUtilsTests-Prefix.pch"; sourceTree = ""; };
9A8D4EB51963431900AFAB21 /* RZBlockKVOTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RZBlockKVOTests.m; sourceTree = ""; };
- CFC331EF976D4DEC8CB9094C /* Pods.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = Pods.xcconfig; path = Pods/Pods.xcconfig; sourceTree = ""; };
D4874DA019918C46003EEC4B /* RZAutoLayoutTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RZAutoLayoutTests.m; sourceTree = ""; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
+ 14D21D671AA316CA000765B6 /* Frameworks */ = {
+ isa = PBXFrameworksBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+ 14D21D7F1AA316CA000765B6 /* Frameworks */ = {
+ isa = PBXFrameworksBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
9A8D4DEF196335CC00AFAB21 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
@@ -47,13 +112,64 @@
/* End PBXFrameworksBuildPhase section */
/* Begin PBXGroup section */
+ 14D21D6B1AA316CA000765B6 /* RZHostApp */ = {
+ isa = PBXGroup;
+ children = (
+ 14D21D701AA316CA000765B6 /* RZHostAppDelegate.h */,
+ 14D21D711AA316CA000765B6 /* RZHostAppDelegate.m */,
+ 14D21D761AA316CA000765B6 /* Main.storyboard */,
+ 14D21D791AA316CA000765B6 /* Images.xcassets */,
+ 14D21D7B1AA316CA000765B6 /* LaunchScreen.xib */,
+ 14D21D6C1AA316CA000765B6 /* Supporting Files */,
+ );
+ path = RZHostApp;
+ sourceTree = "";
+ };
+ 14D21D6C1AA316CA000765B6 /* Supporting Files */ = {
+ isa = PBXGroup;
+ children = (
+ 14D21D6D1AA316CA000765B6 /* Info.plist */,
+ 14D21D6E1AA316CA000765B6 /* main.m */,
+ );
+ name = "Supporting Files";
+ sourceTree = "";
+ };
+ 14D21D851AA316CB000765B6 /* RZHostAppTests */ = {
+ isa = PBXGroup;
+ children = (
+ 14D21D881AA316CB000765B6 /* RZAutoLayoutHelpersTest.m */,
+ 14D21D861AA316CB000765B6 /* Supporting Files */,
+ );
+ path = RZHostAppTests;
+ sourceTree = "";
+ };
+ 14D21D861AA316CB000765B6 /* Supporting Files */ = {
+ isa = PBXGroup;
+ children = (
+ 14D21D871AA316CB000765B6 /* Info.plist */,
+ );
+ name = "Supporting Files";
+ sourceTree = "";
+ };
+ 1D20370BBD690B491DE2ED6F /* Pods */ = {
+ isa = PBXGroup;
+ children = (
+ 7F351ABFC52A252FD16A17B2 /* Pods.debug.xcconfig */,
+ 1CFF0789A9F774D9B6D7E13D /* Pods.release.xcconfig */,
+ 6C14FC1B7EEB65A025DD17AB /* Pods.enterprise-qa.xcconfig */,
+ );
+ name = Pods;
+ sourceTree = "";
+ };
9A8D4DC5196335CC00AFAB21 = {
isa = PBXGroup;
children = (
9A8D4DF9196335CC00AFAB21 /* RZUtilsTests */,
+ 14D21D6B1AA316CA000765B6 /* RZHostApp */,
+ 14D21D851AA316CB000765B6 /* RZHostAppTests */,
9A8D4DD0196335CC00AFAB21 /* Frameworks */,
9A8D4DCF196335CC00AFAB21 /* Products */,
- CFC331EF976D4DEC8CB9094C /* Pods.xcconfig */,
+ 1D20370BBD690B491DE2ED6F /* Pods */,
);
sourceTree = "";
};
@@ -61,6 +177,8 @@
isa = PBXGroup;
children = (
9A8D4DF2196335CC00AFAB21 /* RZUtilsTests.xctest */,
+ 14D21D6A1AA316CA000765B6 /* RZHostApp.app */,
+ 14D21D821AA316CA000765B6 /* RZHostAppTests.xctest */,
);
name = Products;
sourceTree = "";
@@ -81,9 +199,9 @@
9A8D4DF9196335CC00AFAB21 /* RZUtilsTests */ = {
isa = PBXGroup;
children = (
- 9A8D4DFA196335CC00AFAB21 /* Supporting Files */,
- 9A8D4EB51963431900AFAB21 /* RZBlockKVOTests.m */,
D4874DA019918C46003EEC4B /* RZAutoLayoutTests.m */,
+ 9A8D4EB51963431900AFAB21 /* RZBlockKVOTests.m */,
+ 9A8D4DFA196335CC00AFAB21 /* Supporting Files */,
);
path = RZUtilsTests;
sourceTree = "";
@@ -101,6 +219,42 @@
/* End PBXGroup section */
/* Begin PBXNativeTarget section */
+ 14D21D691AA316CA000765B6 /* RZHostApp */ = {
+ isa = PBXNativeTarget;
+ buildConfigurationList = 14D21D8A1AA316CB000765B6 /* Build configuration list for PBXNativeTarget "RZHostApp" */;
+ buildPhases = (
+ 14D21D661AA316CA000765B6 /* Sources */,
+ 14D21D671AA316CA000765B6 /* Frameworks */,
+ 14D21D681AA316CA000765B6 /* Resources */,
+ );
+ buildRules = (
+ );
+ dependencies = (
+ 14D21D941AA31A3F000765B6 /* PBXTargetDependency */,
+ );
+ name = RZHostApp;
+ productName = RZUtilsTestApp;
+ productReference = 14D21D6A1AA316CA000765B6 /* RZHostApp.app */;
+ productType = "com.apple.product-type.application";
+ };
+ 14D21D811AA316CA000765B6 /* RZHostAppTests */ = {
+ isa = PBXNativeTarget;
+ buildConfigurationList = 14D21D8E1AA316CB000765B6 /* Build configuration list for PBXNativeTarget "RZHostAppTests" */;
+ buildPhases = (
+ 14D21D7E1AA316CA000765B6 /* Sources */,
+ 14D21D7F1AA316CA000765B6 /* Frameworks */,
+ 14D21D801AA316CA000765B6 /* Resources */,
+ );
+ buildRules = (
+ );
+ dependencies = (
+ 14D21D841AA316CB000765B6 /* PBXTargetDependency */,
+ );
+ name = RZHostAppTests;
+ productName = RZUtilsTestAppTests;
+ productReference = 14D21D821AA316CA000765B6 /* RZHostAppTests.xctest */;
+ productType = "com.apple.product-type.bundle.unit-test";
+ };
9A8D4DF1196335CC00AFAB21 /* RZUtilsTests */ = {
isa = PBXNativeTarget;
buildConfigurationList = 9A8D4E08196335CC00AFAB21 /* Build configuration list for PBXNativeTarget "RZUtilsTests" */;
@@ -127,8 +281,20 @@
isa = PBXProject;
attributes = {
CLASSPREFIX = RZ;
- LastUpgradeCheck = 0510;
+ LastUpgradeCheck = 0600;
ORGANIZATIONNAME = Raizlabs;
+ TargetAttributes = {
+ 14D21D691AA316CA000765B6 = {
+ CreatedOnToolsVersion = 6.0.1;
+ };
+ 14D21D811AA316CA000765B6 = {
+ CreatedOnToolsVersion = 6.0.1;
+ TestTargetID = 14D21D691AA316CA000765B6;
+ };
+ 14FB87F61ABB662E005ECA1D = {
+ CreatedOnToolsVersion = 6.0.1;
+ };
+ };
};
buildConfigurationList = 9A8D4DC9196335CC00AFAB21 /* Build configuration list for PBXProject "RZUtilsTests" */;
compatibilityVersion = "Xcode 3.2";
@@ -136,6 +302,7 @@
hasScannedForEncodings = 0;
knownRegions = (
en,
+ Base,
);
mainGroup = 9A8D4DC5196335CC00AFAB21;
productRefGroup = 9A8D4DCF196335CC00AFAB21 /* Products */;
@@ -143,11 +310,31 @@
projectRoot = "";
targets = (
9A8D4DF1196335CC00AFAB21 /* RZUtilsTests */,
+ 14D21D691AA316CA000765B6 /* RZHostApp */,
+ 14D21D811AA316CA000765B6 /* RZHostAppTests */,
+ 14FB87F61ABB662E005ECA1D /* RZUtilsAllTests */,
);
};
/* End PBXProject section */
/* Begin PBXResourcesBuildPhase section */
+ 14D21D681AA316CA000765B6 /* Resources */ = {
+ isa = PBXResourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 14D21D781AA316CA000765B6 /* Main.storyboard in Resources */,
+ 14D21D7D1AA316CA000765B6 /* LaunchScreen.xib in Resources */,
+ 14D21D7A1AA316CA000765B6 /* Images.xcassets in Resources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+ 14D21D801AA316CA000765B6 /* Resources */ = {
+ isa = PBXResourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
9A8D4DF0196335CC00AFAB21 /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
@@ -159,6 +346,32 @@
/* End PBXResourcesBuildPhase section */
/* Begin PBXShellScriptBuildPhase section */
+ 14FB88011ABB6973005ECA1D /* ShellScript */ = {
+ isa = PBXShellScriptBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputPaths = (
+ );
+ outputPaths = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "xctool -workspace RZUtilsTests.xcworkspace -scheme RZUtilsTests -sdk iphonesimulator test";
+ };
+ 14FB88021ABB6AAB005ECA1D /* ShellScript */ = {
+ isa = PBXShellScriptBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputPaths = (
+ );
+ outputPaths = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "xctool -workspace RZUtilsTests.xcworkspace -scheme RZUtilsTestApp -sdk iphonesimulator test";
+ };
DB328C2D17B7432F9AFBFA98 /* Copy Pods Resources */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
@@ -171,7 +384,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
- shellScript = "\"${SRCROOT}/Pods/Pods-resources.sh\"\n";
+ shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods/Pods-resources.sh\"\n";
showEnvVarsInLog = 0;
};
DFCEA1E42D714A99949F834D /* Check Pods Manifest.lock */ = {
@@ -192,6 +405,23 @@
/* End PBXShellScriptBuildPhase section */
/* Begin PBXSourcesBuildPhase section */
+ 14D21D661AA316CA000765B6 /* Sources */ = {
+ isa = PBXSourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 14D21D721AA316CA000765B6 /* RZHostAppDelegate.m in Sources */,
+ 14D21D6F1AA316CA000765B6 /* main.m in Sources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+ 14D21D7E1AA316CA000765B6 /* Sources */ = {
+ isa = PBXSourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 14D21D891AA316CB000765B6 /* RZAutoLayoutHelpersTest.m in Sources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
9A8D4DEE196335CC00AFAB21 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
@@ -203,7 +433,36 @@
};
/* End PBXSourcesBuildPhase section */
+/* Begin PBXTargetDependency section */
+ 14D21D841AA316CB000765B6 /* PBXTargetDependency */ = {
+ isa = PBXTargetDependency;
+ target = 14D21D691AA316CA000765B6 /* RZHostApp */;
+ targetProxy = 14D21D831AA316CB000765B6 /* PBXContainerItemProxy */;
+ };
+ 14D21D941AA31A3F000765B6 /* PBXTargetDependency */ = {
+ isa = PBXTargetDependency;
+ target = 9A8D4DF1196335CC00AFAB21 /* RZUtilsTests */;
+ targetProxy = 14D21D931AA31A3F000765B6 /* PBXContainerItemProxy */;
+ };
+/* End PBXTargetDependency section */
+
/* Begin PBXVariantGroup section */
+ 14D21D761AA316CA000765B6 /* Main.storyboard */ = {
+ isa = PBXVariantGroup;
+ children = (
+ 14D21D771AA316CA000765B6 /* Base */,
+ );
+ name = Main.storyboard;
+ sourceTree = "";
+ };
+ 14D21D7B1AA316CA000765B6 /* LaunchScreen.xib */ = {
+ isa = PBXVariantGroup;
+ children = (
+ 14D21D7C1AA316CA000765B6 /* Base */,
+ );
+ name = LaunchScreen.xib;
+ sourceTree = "";
+ };
9A8D4DFC196335CC00AFAB21 /* InfoPlist.strings */ = {
isa = PBXVariantGroup;
children = (
@@ -215,11 +474,153 @@
/* End PBXVariantGroup section */
/* Begin XCBuildConfiguration section */
+ 14D21D8B1AA316CB000765B6 /* Debug */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = 7F351ABFC52A252FD16A17B2 /* Pods.debug.xcconfig */;
+ buildSettings = {
+ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+ CLANG_WARN_UNREACHABLE_CODE = YES;
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
+ GCC_PREPROCESSOR_DEFINITIONS = (
+ "DEBUG=1",
+ "$(inherited)",
+ );
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+ INFOPLIST_FILE = "$(SRCROOT)/RZHostApp/Info.plist";
+ IPHONEOS_DEPLOYMENT_TARGET = 7.0;
+ LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
+ MTL_ENABLE_DEBUG_INFO = YES;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ TARGETED_DEVICE_FAMILY = "1,2";
+ };
+ name = Debug;
+ };
+ 14D21D8C1AA316CB000765B6 /* Release */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = 1CFF0789A9F774D9B6D7E13D /* Pods.release.xcconfig */;
+ buildSettings = {
+ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+ CLANG_WARN_UNREACHABLE_CODE = YES;
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+ INFOPLIST_FILE = "$(SRCROOT)/RZHostApp/Info.plist";
+ IPHONEOS_DEPLOYMENT_TARGET = 7.0;
+ LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
+ MTL_ENABLE_DEBUG_INFO = NO;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ TARGETED_DEVICE_FAMILY = "1,2";
+ };
+ name = Release;
+ };
+ 14D21D8D1AA316CB000765B6 /* Enterprise-QA */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = 6C14FC1B7EEB65A025DD17AB /* Pods.enterprise-qa.xcconfig */;
+ buildSettings = {
+ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+ CLANG_WARN_UNREACHABLE_CODE = YES;
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+ INFOPLIST_FILE = "$(SRCROOT)/RZHostApp/Info.plist";
+ IPHONEOS_DEPLOYMENT_TARGET = 7.0;
+ LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
+ MTL_ENABLE_DEBUG_INFO = NO;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ TARGETED_DEVICE_FAMILY = "1,2";
+ };
+ name = "Enterprise-QA";
+ };
+ 14D21D8F1AA316CB000765B6 /* Debug */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = 7F351ABFC52A252FD16A17B2 /* Pods.debug.xcconfig */;
+ buildSettings = {
+ BUNDLE_LOADER = "$(TEST_HOST)";
+ CLANG_WARN_UNREACHABLE_CODE = YES;
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
+ FRAMEWORK_SEARCH_PATHS = (
+ "$(SDKROOT)/Developer/Library/Frameworks",
+ "$(inherited)",
+ );
+ GCC_PREPROCESSOR_DEFINITIONS = (
+ "DEBUG=1",
+ "$(inherited)",
+ );
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+ INFOPLIST_FILE = RZHostAppTests/Info.plist;
+ IPHONEOS_DEPLOYMENT_TARGET = 8.0;
+ LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
+ MTL_ENABLE_DEBUG_INFO = YES;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ TEST_HOST = "$(BUILT_PRODUCTS_DIR)/RZHostApp.app/RZHostApp";
+ };
+ name = Debug;
+ };
+ 14D21D901AA316CB000765B6 /* Release */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = 1CFF0789A9F774D9B6D7E13D /* Pods.release.xcconfig */;
+ buildSettings = {
+ BUNDLE_LOADER = "$(TEST_HOST)";
+ CLANG_WARN_UNREACHABLE_CODE = YES;
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
+ FRAMEWORK_SEARCH_PATHS = (
+ "$(SDKROOT)/Developer/Library/Frameworks",
+ "$(inherited)",
+ );
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+ INFOPLIST_FILE = RZHostAppTests/Info.plist;
+ IPHONEOS_DEPLOYMENT_TARGET = 8.0;
+ LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
+ MTL_ENABLE_DEBUG_INFO = NO;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ TEST_HOST = "$(BUILT_PRODUCTS_DIR)/RZHostApp.app/RZHostApp";
+ };
+ name = Release;
+ };
+ 14D21D911AA316CB000765B6 /* Enterprise-QA */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = 6C14FC1B7EEB65A025DD17AB /* Pods.enterprise-qa.xcconfig */;
+ buildSettings = {
+ BUNDLE_LOADER = "$(TEST_HOST)";
+ CLANG_WARN_UNREACHABLE_CODE = YES;
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
+ FRAMEWORK_SEARCH_PATHS = (
+ "$(SDKROOT)/Developer/Library/Frameworks",
+ "$(inherited)",
+ );
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+ INFOPLIST_FILE = RZHostAppTests/Info.plist;
+ IPHONEOS_DEPLOYMENT_TARGET = 8.0;
+ LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
+ MTL_ENABLE_DEBUG_INFO = NO;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ TEST_HOST = "$(BUILT_PRODUCTS_DIR)/RZHostApp.app/RZHostApp";
+ };
+ name = "Enterprise-QA";
+ };
+ 14FB87F71ABB662E005ECA1D /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ };
+ name = Debug;
+ };
+ 14FB87F81ABB662E005ECA1D /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ };
+ name = Release;
+ };
+ 14FB87F91ABB662E005ECA1D /* Enterprise-QA */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ };
+ name = "Enterprise-QA";
+ };
9A8D4E01196335CC00AFAB21 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
- ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)";
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
@@ -258,7 +659,6 @@
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
- ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)";
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
@@ -291,7 +691,6 @@
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
- ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)";
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
@@ -327,7 +726,7 @@
};
9A8D4E09196335CC00AFAB21 /* Debug */ = {
isa = XCBuildConfiguration;
- baseConfigurationReference = CFC331EF976D4DEC8CB9094C /* Pods.xcconfig */;
+ baseConfigurationReference = 7F351ABFC52A252FD16A17B2 /* Pods.debug.xcconfig */;
buildSettings = {
FRAMEWORK_SEARCH_PATHS = (
"$(SDKROOT)/Developer/Library/Frameworks",
@@ -349,7 +748,7 @@
};
9A8D4E0A196335CC00AFAB21 /* Release */ = {
isa = XCBuildConfiguration;
- baseConfigurationReference = CFC331EF976D4DEC8CB9094C /* Pods.xcconfig */;
+ baseConfigurationReference = 1CFF0789A9F774D9B6D7E13D /* Pods.release.xcconfig */;
buildSettings = {
FRAMEWORK_SEARCH_PATHS = (
"$(SDKROOT)/Developer/Library/Frameworks",
@@ -367,7 +766,7 @@
};
9A8D4E0B196335CC00AFAB21 /* Enterprise-QA */ = {
isa = XCBuildConfiguration;
- baseConfigurationReference = CFC331EF976D4DEC8CB9094C /* Pods.xcconfig */;
+ baseConfigurationReference = 6C14FC1B7EEB65A025DD17AB /* Pods.enterprise-qa.xcconfig */;
buildSettings = {
FRAMEWORK_SEARCH_PATHS = (
"$(SDKROOT)/Developer/Library/Frameworks",
@@ -386,6 +785,36 @@
/* End XCBuildConfiguration section */
/* Begin XCConfigurationList section */
+ 14D21D8A1AA316CB000765B6 /* Build configuration list for PBXNativeTarget "RZHostApp" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 14D21D8B1AA316CB000765B6 /* Debug */,
+ 14D21D8C1AA316CB000765B6 /* Release */,
+ 14D21D8D1AA316CB000765B6 /* Enterprise-QA */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+ 14D21D8E1AA316CB000765B6 /* Build configuration list for PBXNativeTarget "RZHostAppTests" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 14D21D8F1AA316CB000765B6 /* Debug */,
+ 14D21D901AA316CB000765B6 /* Release */,
+ 14D21D911AA316CB000765B6 /* Enterprise-QA */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+ 14FB87FA1ABB662E005ECA1D /* Build configuration list for PBXAggregateTarget "RZUtilsAllTests" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 14FB87F71ABB662E005ECA1D /* Debug */,
+ 14FB87F81ABB662E005ECA1D /* Release */,
+ 14FB87F91ABB662E005ECA1D /* Enterprise-QA */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
9A8D4DC9196335CC00AFAB21 /* Build configuration list for PBXProject "RZUtilsTests" */ = {
isa = XCConfigurationList;
buildConfigurations = (
diff --git a/Tests/RZUtilsTests.xcodeproj/xcshareddata/xcschemes/RZUtilsAllTests.xcscheme b/Tests/RZUtilsTests.xcodeproj/xcshareddata/xcschemes/RZUtilsAllTests.xcscheme
new file mode 100644
index 0000000..60db6e4
--- /dev/null
+++ b/Tests/RZUtilsTests.xcodeproj/xcshareddata/xcschemes/RZUtilsAllTests.xcscheme
@@ -0,0 +1,86 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Tests/RZUtilsTests.xcodeproj/xcshareddata/xcschemes/RZUtilsTestApp.xcscheme b/Tests/RZUtilsTests.xcodeproj/xcshareddata/xcschemes/RZUtilsTestApp.xcscheme
new file mode 100644
index 0000000..53504d1
--- /dev/null
+++ b/Tests/RZUtilsTests.xcodeproj/xcshareddata/xcschemes/RZUtilsTestApp.xcscheme
@@ -0,0 +1,112 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Tests/RZUtilsTests.xcodeproj/xcshareddata/xcschemes/RZUtilsTests.xcscheme b/Tests/RZUtilsTests.xcodeproj/xcshareddata/xcschemes/RZUtilsTests.xcscheme
index b0389c1..320ae80 100644
--- a/Tests/RZUtilsTests.xcodeproj/xcshareddata/xcschemes/RZUtilsTests.xcscheme
+++ b/Tests/RZUtilsTests.xcodeproj/xcshareddata/xcschemes/RZUtilsTests.xcscheme
@@ -1,6 +1,6 @@
-
+
-
+