Skip to content

Commit

Permalink
fix project crash
Browse files Browse the repository at this point in the history
  • Loading branch information
gsabran committed Apr 10, 2018
1 parent f10db4e commit b348499
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 9 deletions.
8 changes: 5 additions & 3 deletions DDDKit/Classes/DDDView.swift
Expand Up @@ -49,9 +49,11 @@ open class DDDViewController: UIViewController {
didMove(toParentViewController: viewController)
}

public required init?(coder aDecoder: NSCoder) {
fatalError("DDDViewController should not be initialized from a coder")
}
required public init(coder aDecoder: NSCoder) {
self.isPaused = false
DDDViewController.count += 1
super.init(coder: aDecoder)!
}

open override func viewDidLoad() {
super.viewDidLoad()
Expand Down
15 changes: 13 additions & 2 deletions Example/DDDKit.xcodeproj/project.pbxproj
Expand Up @@ -302,13 +302,16 @@
files = (
);
inputPaths = (
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
"${PODS_ROOT}/Manifest.lock",
);
name = "[CP] Check Pods Manifest.lock";
outputPaths = (
"$(DERIVED_FILE_DIR)/Pods-DDDKit_Tests-checkManifestLockResult.txt",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n";
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
showEnvVarsInLog = 0;
};
CE43A5305CC351BC41F0C210 /* [CP] Copy Pods Resources */ = {
Expand All @@ -332,9 +335,14 @@
files = (
);
inputPaths = (
"${SRCROOT}/Pods/Target Support Files/Pods-DDDKit_Example/Pods-DDDKit_Example-frameworks.sh",
"${BUILT_PRODUCTS_DIR}/DDDKit/DDDKit.framework",
"${BUILT_PRODUCTS_DIR}/GLMatrix/GLMatrix.framework",
);
name = "[CP] Embed Pods Frameworks";
outputPaths = (
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/DDDKit.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/GLMatrix.framework",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
Expand All @@ -347,13 +355,16 @@
files = (
);
inputPaths = (
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
"${PODS_ROOT}/Manifest.lock",
);
name = "[CP] Check Pods Manifest.lock";
outputPaths = (
"$(DERIVED_FILE_DIR)/Pods-DDDKit_Example-checkManifestLockResult.txt",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n";
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
showEnvVarsInLog = 0;
};
/* End PBXShellScriptBuildPhase section */
Expand Down
8 changes: 4 additions & 4 deletions Example/Podfile.lock
@@ -1,5 +1,5 @@
PODS:
- DDDKit (1.0.2):
- DDDKit (1.3.0):
- GLMatrix (= 0.1.5)
- GLMatrix (0.1.5)

Expand All @@ -8,12 +8,12 @@ DEPENDENCIES:

EXTERNAL SOURCES:
DDDKit:
:path: "../"
:path: ../

SPEC CHECKSUMS:
DDDKit: 5c340109079421c828df84293e37d48a8abe8d0b
DDDKit: b091ad23c159efa7a12bcf4b0c7299413e26d7c1
GLMatrix: 59e00baabb2b7d942c6c77ab09bdb2d020ccf91f

PODFILE CHECKSUM: 893c6a9bea368e31a28e21c2766ef70b7bb63463

COCOAPODS: 1.2.0
COCOAPODS: 1.4.0

0 comments on commit b348499

Please sign in to comment.