Skip to content

Commit

Permalink
Run pod install (#38)
Browse files Browse the repository at this point in the history
* Run pod install
* Run pod update. Remove xctool
* Install xcpretty in .travis.yml
* Resolve code signing error
* Force commit scheme to fix travis
  • Loading branch information
ladanazita authored Oct 19, 2017
1 parent cf2d7fe commit 6b5418e
Show file tree
Hide file tree
Showing 5 changed files with 145 additions and 17 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ osx_image: xcode7.1

before_install:
- gem install cocoapods
- gem install xcpretty

script:
# pod lib lint --use-libraries --allow-warnings
Expand Down
16 changes: 8 additions & 8 deletions Example/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
PODS:
- Amplitude-iOS (4.0.1)
- Analytics (3.6.0)
- Expecta (1.0.5)
- Amplitude-iOS (4.0.3)
- Analytics (3.6.7)
- Expecta (1.0.6)
- OCHamcrest (7.0.2)
- OCMockito (5.0.1):
- OCHamcrest (~> 7.0)
- Segment-Amplitude (1.4.4):
- Amplitude-iOS (~> 4.0)
- Analytics (~> 3.6)
- Specta (1.0.6)
- Specta (1.0.7)

DEPENDENCIES:
- Expecta
Expand All @@ -21,13 +21,13 @@ EXTERNAL SOURCES:
:path: ../

SPEC CHECKSUMS:
Amplitude-iOS: e511a77d2c05f3cc623a40e4323e65d12ef1c322
Analytics: 15be3e651d22cc811f44df65698538236676437b
Expecta: e1c022fcd33910b6be89c291d2775b3fe27a89fe
Amplitude-iOS: d17f387fca4def647ddcd898f0a3fa90b70fbf1c
Analytics: 2c09a50e3478a3a7ced08a22d00c43ba6f7011e6
Expecta: 3b6bd90a64b9a1dcb0b70aa0e10a7f8f631667d5
OCHamcrest: 706bfbf69a3df55a873bad096014e80e2e8ca93c
OCMockito: 063837a086c058e764fcd23e771089c1759e7197
Segment-Amplitude: 985f1f4e4e4c3b5bfa28c52995e13fd9ed932e5f
Specta: f506f3a8361de16bc0dcf3b17b75e269072ba465
Specta: 3e1bd89c3517421982dc4d1c992503e48bd5fe66

PODFILE CHECKSUM: f3781d85a056f01c90fae0474309638084899ac0

Expand Down
21 changes: 19 additions & 2 deletions Example/Segment-Amplitude.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,9 @@
LastUpgradeCheck = 0510;
ORGANIZATIONNAME = "Prateek Srivastava";
TargetAttributes = {
6003F589195388D20070C39A = {
DevelopmentTeam = ENLA8E7Z4L;
};
6003F5AD195388D20070C39A = {
TestTargetID = 6003F589195388D20070C39A;
};
Expand Down Expand Up @@ -299,9 +302,15 @@
files = (
);
inputPaths = (
"${SRCROOT}/Pods/Target Support Files/Pods-Segment-Amplitude_Example/Pods-Segment-Amplitude_Example-resources.sh",
"${PODS_ROOT}/Amplitude-iOS/Amplitude/api.amplitude.com.der",
"${PODS_ROOT}/Amplitude-iOS/Amplitude/ComodoCaLimitedRsaCertificationAuthority.der",
"${PODS_ROOT}/Amplitude-iOS/Amplitude/ComodoRsaCA.der",
"${PODS_ROOT}/Amplitude-iOS/Amplitude/ComodoRsaDomainValidationCA.der",
);
name = "[CP] Copy Pods Resources";
outputPaths = (
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
Expand Down Expand Up @@ -329,13 +338,16 @@
files = (
);
inputPaths = (
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
"${PODS_ROOT}/Manifest.lock",
);
name = "[CP] Check Pods Manifest.lock";
outputPaths = (
"$(DERIVED_FILE_DIR)/Pods-Segment-Amplitude_Example-checkManifestLockResult.txt",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
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";
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;
};
96CC595E0672096BFEBE21DB /* [CP] Copy Pods Resources */ = {
Expand All @@ -359,13 +371,16 @@
files = (
);
inputPaths = (
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
"${PODS_ROOT}/Manifest.lock",
);
name = "[CP] Check Pods Manifest.lock";
outputPaths = (
"$(DERIVED_FILE_DIR)/Pods-Segment-Amplitude_Tests-checkManifestLockResult.txt",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
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";
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;
};
DE78D070576999349BDBA460 /* [CP] Embed Pods Frameworks */ = {
Expand Down Expand Up @@ -512,6 +527,7 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
DEVELOPMENT_TEAM = ENLA8E7Z4L;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "Segment-Amplitude/Segment-Amplitude-Prefix.pch";
INFOPLIST_FILE = "Segment-Amplitude/Segment-Amplitude-Info.plist";
Expand All @@ -528,6 +544,7 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
DEVELOPMENT_TEAM = ENLA8E7Z4L;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "Segment-Amplitude/Segment-Amplitude-Prefix.pch";
INFOPLIST_FILE = "Segment-Amplitude/Segment-Amplitude-Info.plist";
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0830"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "6003F589195388D20070C39A"
BuildableName = "Segment-Amplitude_Example.app"
BlueprintName = "Segment-Amplitude_Example"
ReferencedContainer = "container:Segment-Amplitude.xcodeproj">
</BuildableReference>
</BuildActionEntry>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "EEF7F35EF2935356162643A706AC6949"
BuildableName = "libSegment-Amplitude.a"
BlueprintName = "Segment-Amplitude"
ReferencedContainer = "container:Pods/Pods.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
codeCoverageEnabled = "YES">
<Testables>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "6003F5AD195388D20070C39A"
BuildableName = "Segment-Amplitude_Tests.xctest"
BlueprintName = "Segment-Amplitude_Tests"
ReferencedContainer = "container:Segment-Amplitude.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "6003F589195388D20070C39A"
BuildableName = "Segment-Amplitude_Example.app"
BlueprintName = "Segment-Amplitude_Example"
ReferencedContainer = "container:Segment-Amplitude.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "6003F589195388D20070C39A"
BuildableName = "Segment-Amplitude_Example.app"
BlueprintName = "Segment-Amplitude_Example"
ReferencedContainer = "container:Segment-Amplitude.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "6003F589195388D20070C39A"
BuildableName = "Segment-Amplitude_Example.app"
BlueprintName = "Segment-Amplitude_Example"
ReferencedContainer = "container:Segment-Amplitude.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
8 changes: 1 addition & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ DESTINATION ?= "platform=iOS Simulator,name=iPhone 5"
PROJECT := Segment-Amplitude
XC_ARGS := -scheme $(PROJECT)_Example -workspace Example/$(PROJECT).xcworkspace -sdk $(SDK) -destination $(DESTINATION) ONLY_ACTIVE_ARCH=NO

install: Example/Podfile $(PROJECT).podspec
install: Example/Podfile Segment-Amplitude.podspec
pod repo update
pod install --project-directory=Example

Expand All @@ -18,11 +18,5 @@ build:
test:
xcodebuild test $(XC_ARGS) | $(XCPRETTY)

xcbuild:
xctool $(XC_ARGS)

xctest:
xctool test $(XC_ARGS)

.PHONY: test build xctest xcbuild clean
.SILENT:

0 comments on commit 6b5418e

Please sign in to comment.