Skip to content

Commit 8873a71

Browse files
committed
Setup example and pod spec
1 parent dde5a26 commit 8873a71

6 files changed

Lines changed: 113 additions & 3 deletions

File tree

Example/Example.xcodeproj/project.pbxproj

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,23 +12,28 @@
1212
8251553C219DCC8A0018B760 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 8251553A219DCC8A0018B760 /* Main.storyboard */; };
1313
8251553E219DCC8C0018B760 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 8251553D219DCC8C0018B760 /* Assets.xcassets */; };
1414
82515541219DCC8C0018B760 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 8251553F219DCC8C0018B760 /* LaunchScreen.storyboard */; };
15+
F4B0ADAF27E8C761E7046A67 /* Pods_Example.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6E23ECE17CBC2F4DDB03C77F /* Pods_Example.framework */; };
1516
/* End PBXBuildFile section */
1617

1718
/* Begin PBXFileReference section */
19+
6E23ECE17CBC2F4DDB03C77F /* Pods_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; };
20+
712D8799EC7DBC9E1D46472B /* Pods-Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Example.release.xcconfig"; path = "Pods/Target Support Files/Pods-Example/Pods-Example.release.xcconfig"; sourceTree = "<group>"; };
1821
82515533219DCC8A0018B760 /* Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Example.app; sourceTree = BUILT_PRODUCTS_DIR; };
1922
82515536219DCC8A0018B760 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
2023
82515538219DCC8A0018B760 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = "<group>"; };
2124
8251553B219DCC8A0018B760 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
2225
8251553D219DCC8C0018B760 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
2326
82515540219DCC8C0018B760 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
2427
82515542219DCC8C0018B760 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
28+
9AF54401AE27868F98BE93A1 /* Pods-Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Example.debug.xcconfig"; path = "Pods/Target Support Files/Pods-Example/Pods-Example.debug.xcconfig"; sourceTree = "<group>"; };
2529
/* End PBXFileReference section */
2630

2731
/* Begin PBXFrameworksBuildPhase section */
2832
82515530219DCC8A0018B760 /* Frameworks */ = {
2933
isa = PBXFrameworksBuildPhase;
3034
buildActionMask = 2147483647;
3135
files = (
36+
F4B0ADAF27E8C761E7046A67 /* Pods_Example.framework in Frameworks */,
3237
);
3338
runOnlyForDeploymentPostprocessing = 0;
3439
};
@@ -40,6 +45,8 @@
4045
children = (
4146
82515535219DCC8A0018B760 /* Example */,
4247
82515534219DCC8A0018B760 /* Products */,
48+
D7DD49770AF7D6FD3006E832 /* Pods */,
49+
9FE1C328A06722A59895F71A /* Frameworks */,
4350
);
4451
sourceTree = "<group>";
4552
};
@@ -64,16 +71,35 @@
6471
path = Example;
6572
sourceTree = "<group>";
6673
};
74+
9FE1C328A06722A59895F71A /* Frameworks */ = {
75+
isa = PBXGroup;
76+
children = (
77+
6E23ECE17CBC2F4DDB03C77F /* Pods_Example.framework */,
78+
);
79+
name = Frameworks;
80+
sourceTree = "<group>";
81+
};
82+
D7DD49770AF7D6FD3006E832 /* Pods */ = {
83+
isa = PBXGroup;
84+
children = (
85+
9AF54401AE27868F98BE93A1 /* Pods-Example.debug.xcconfig */,
86+
712D8799EC7DBC9E1D46472B /* Pods-Example.release.xcconfig */,
87+
);
88+
name = Pods;
89+
sourceTree = "<group>";
90+
};
6791
/* End PBXGroup section */
6892

6993
/* Begin PBXNativeTarget section */
7094
82515532219DCC8A0018B760 /* Example */ = {
7195
isa = PBXNativeTarget;
7296
buildConfigurationList = 82515545219DCC8C0018B760 /* Build configuration list for PBXNativeTarget "Example" */;
7397
buildPhases = (
98+
8D3708AC6C8A94B065EBDF8B /* [CP] Check Pods Manifest.lock */,
7499
8251552F219DCC8A0018B760 /* Sources */,
75100
82515530219DCC8A0018B760 /* Frameworks */,
76101
82515531219DCC8A0018B760 /* Resources */,
102+
3CC357E7CB6D1E81ED31FCF5 /* [CP] Embed Pods Frameworks */,
77103
);
78104
buildRules = (
79105
);
@@ -130,6 +156,53 @@
130156
};
131157
/* End PBXResourcesBuildPhase section */
132158

159+
/* Begin PBXShellScriptBuildPhase section */
160+
3CC357E7CB6D1E81ED31FCF5 /* [CP] Embed Pods Frameworks */ = {
161+
isa = PBXShellScriptBuildPhase;
162+
buildActionMask = 2147483647;
163+
files = (
164+
);
165+
inputFileListPaths = (
166+
);
167+
inputPaths = (
168+
"${SRCROOT}/Pods/Target Support Files/Pods-Example/Pods-Example-frameworks.sh",
169+
"${BUILT_PRODUCTS_DIR}/PickImageAlert/PickImageAlert.framework",
170+
);
171+
name = "[CP] Embed Pods Frameworks";
172+
outputFileListPaths = (
173+
);
174+
outputPaths = (
175+
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/PickImageAlert.framework",
176+
);
177+
runOnlyForDeploymentPostprocessing = 0;
178+
shellPath = /bin/sh;
179+
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-Example/Pods-Example-frameworks.sh\"\n";
180+
showEnvVarsInLog = 0;
181+
};
182+
8D3708AC6C8A94B065EBDF8B /* [CP] Check Pods Manifest.lock */ = {
183+
isa = PBXShellScriptBuildPhase;
184+
buildActionMask = 2147483647;
185+
files = (
186+
);
187+
inputFileListPaths = (
188+
);
189+
inputPaths = (
190+
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
191+
"${PODS_ROOT}/Manifest.lock",
192+
);
193+
name = "[CP] Check Pods Manifest.lock";
194+
outputFileListPaths = (
195+
);
196+
outputPaths = (
197+
"$(DERIVED_FILE_DIR)/Pods-Example-checkManifestLockResult.txt",
198+
);
199+
runOnlyForDeploymentPostprocessing = 0;
200+
shellPath = /bin/sh;
201+
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";
202+
showEnvVarsInLog = 0;
203+
};
204+
/* End PBXShellScriptBuildPhase section */
205+
133206
/* Begin PBXSourcesBuildPhase section */
134207
8251552F219DCC8A0018B760 /* Sources */ = {
135208
isa = PBXSourcesBuildPhase;
@@ -280,6 +353,7 @@
280353
};
281354
82515546219DCC8C0018B760 /* Debug */ = {
282355
isa = XCBuildConfiguration;
356+
baseConfigurationReference = 9AF54401AE27868F98BE93A1 /* Pods-Example.debug.xcconfig */;
283357
buildSettings = {
284358
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
285359
CODE_SIGN_STYLE = Automatic;
@@ -301,6 +375,7 @@
301375
};
302376
82515547219DCC8C0018B760 /* Release */ = {
303377
isa = XCBuildConfiguration;
378+
baseConfigurationReference = 712D8799EC7DBC9E1D46472B /* Pods-Example.release.xcconfig */;
304379
buildSettings = {
305380
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
306381
CODE_SIGN_STYLE = Automatic;

Example/Example.xcworkspace/contents.xcworkspacedata

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>IDEDidComputeMac32BitWarning</key>
6+
<true/>
7+
</dict>
8+
</plist>

Example/Podfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ target 'Example' do
44
use_frameworks!
55

66
# Pods for Example
7-
pod 'PickImageAlert', :path => "../Framework/"
7+
pod 'PickImageAlert', :path => "../"
88

99
end

Example/Podfile.lock

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
PODS:
2+
- PickImageAlert (1.0.0)
3+
4+
DEPENDENCIES:
5+
- PickImageAlert (from `../`)
6+
7+
EXTERNAL SOURCES:
8+
PickImageAlert:
9+
:path: "../"
10+
11+
SPEC CHECKSUMS:
12+
PickImageAlert: ba09ee4900bacc8291a61e6b7e2d5bc6459189a5
13+
14+
PODFILE CHECKSUM: a1cb9dbd8c1d3fec1b5588f798c10b402a841be8
15+
16+
COCOAPODS: 1.5.3
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ Pod::Spec.new do |s|
1010
s.social_media_url = "https://twitter.com/johncarloslima"
1111
s.platform = :ios, "11.0"
1212
s.source = { :git => "https://github.com/limadeveloper/PickImageAlert.git", :tag => "#{s.version}" }
13-
s.source_files = "Framework/PickImageAlert/**/*"
14-
s.resources = "Framework/PickImageAlert/**/*"
13+
s.framework = "UIKit"
14+
s.source_files = "Framework/PickImageAlert/**/*.{swift}"
15+
s.resources = "Framework/PickImageAlert/**/*.{png,jpeg,jpg,storyboard,xib,xcassets}"
1516
s.swift_version = "4.2"
1617
end

0 commit comments

Comments
 (0)