Skip to content

Commit 42c79c0

Browse files
committed
fix can't load bundle
1 parent 8701b77 commit 42c79c0

5 files changed

Lines changed: 113 additions & 33 deletions

File tree

FEPopupMenuController/FEPopupMenuItemCell.m

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@ +(NSString *)identifier{
1616
}
1717

1818
+ (UINib *)nib{
19-
return [UINib nibWithNibName:[self identifier] bundle:[NSBundle bundleForClass:[self class]]];
19+
NSBundle *bundle = [NSBundle bundleForClass:[self class]];
20+
NSURL *bundleURL = [bundle URLForResource:@"FEPopupResource" withExtension:@"bundle"];
21+
UINib *nib = [UINib nibWithNibName:[self identifier] bundle:[NSBundle bundleWithURL:bundleURL]];
22+
return nib;
2023
}
2124

2225
-(void)configCellWithItem:(FEPopupMenuItem *)item{

FEPopupMenuControllerDemo/FEPopupMenuControllerDemo.xcodeproj/project.pbxproj

Lines changed: 72 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -7,25 +7,16 @@
77
objects = {
88

99
/* Begin PBXBuildFile section */
10-
0B62DA0E1CE9727300EE684E /* FEPopupMenuControllerAnimatedTransitioning.m in Sources */ = {isa = PBXBuildFile; fileRef = 0B62DA0D1CE9727300EE684E /* FEPopupMenuControllerAnimatedTransitioning.m */; };
11-
0B690B9C1C5B68A200A06C36 /* FEPopupMenuItemCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 0B690B9A1C5B68A200A06C36 /* FEPopupMenuItemCell.m */; };
12-
0B690B9D1C5B68A200A06C36 /* FEPopupMenuItemCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = 0B690B9B1C5B68A200A06C36 /* FEPopupMenuItemCell.xib */; };
1310
0BBE730F1C5B483700DEF2EE /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 0BBE730E1C5B483700DEF2EE /* main.m */; };
1411
0BBE73121C5B483700DEF2EE /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 0BBE73111C5B483700DEF2EE /* AppDelegate.m */; };
1512
0BBE73151C5B483700DEF2EE /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 0BBE73141C5B483700DEF2EE /* ViewController.m */; };
1613
0BBE73181C5B483700DEF2EE /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 0BBE73161C5B483700DEF2EE /* Main.storyboard */; };
1714
0BBE731A1C5B483700DEF2EE /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 0BBE73191C5B483700DEF2EE /* Assets.xcassets */; };
1815
0BBE731D1C5B483700DEF2EE /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 0BBE731B1C5B483700DEF2EE /* LaunchScreen.storyboard */; };
19-
0BBE733E1C5B4F5A00DEF2EE /* FEPopupMenuController.m in Sources */ = {isa = PBXBuildFile; fileRef = 0BBE733B1C5B4F5A00DEF2EE /* FEPopupMenuController.m */; };
20-
0BBE733F1C5B4F5A00DEF2EE /* FEPopupMenuItem.m in Sources */ = {isa = PBXBuildFile; fileRef = 0BBE733D1C5B4F5A00DEF2EE /* FEPopupMenuItem.m */; };
16+
DB639C4A19232AA1CF4C0DCC /* libPods-FEPopupMenuControllerDemo.a in Frameworks */ = {isa = PBXBuildFile; fileRef = E5B62A164659C0B7FA0F4F9E /* libPods-FEPopupMenuControllerDemo.a */; };
2117
/* End PBXBuildFile section */
2218

2319
/* Begin PBXFileReference section */
24-
0B62DA0C1CE9727300EE684E /* FEPopupMenuControllerAnimatedTransitioning.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FEPopupMenuControllerAnimatedTransitioning.h; sourceTree = "<group>"; };
25-
0B62DA0D1CE9727300EE684E /* FEPopupMenuControllerAnimatedTransitioning.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = FEPopupMenuControllerAnimatedTransitioning.m; sourceTree = "<group>"; };
26-
0B690B991C5B68A200A06C36 /* FEPopupMenuItemCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FEPopupMenuItemCell.h; sourceTree = "<group>"; };
27-
0B690B9A1C5B68A200A06C36 /* FEPopupMenuItemCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = FEPopupMenuItemCell.m; sourceTree = "<group>"; };
28-
0B690B9B1C5B68A200A06C36 /* FEPopupMenuItemCell.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = FEPopupMenuItemCell.xib; sourceTree = "<group>"; };
2920
0BBE730A1C5B483700DEF2EE /* FEPopupMenuControllerDemo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = FEPopupMenuControllerDemo.app; sourceTree = BUILT_PRODUCTS_DIR; };
3021
0BBE730E1C5B483700DEF2EE /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
3122
0BBE73101C5B483700DEF2EE /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; };
@@ -36,17 +27,17 @@
3627
0BBE73191C5B483700DEF2EE /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
3728
0BBE731C1C5B483700DEF2EE /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
3829
0BBE731E1C5B483700DEF2EE /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
39-
0BBE733A1C5B4F5A00DEF2EE /* FEPopupMenuController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FEPopupMenuController.h; sourceTree = "<group>"; };
40-
0BBE733B1C5B4F5A00DEF2EE /* FEPopupMenuController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = FEPopupMenuController.m; sourceTree = "<group>"; };
41-
0BBE733C1C5B4F5A00DEF2EE /* FEPopupMenuItem.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FEPopupMenuItem.h; sourceTree = "<group>"; };
42-
0BBE733D1C5B4F5A00DEF2EE /* FEPopupMenuItem.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = FEPopupMenuItem.m; sourceTree = "<group>"; };
30+
790B61A08958F53058EDE921 /* Pods-FEPopupMenuControllerDemo.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-FEPopupMenuControllerDemo.debug.xcconfig"; path = "Pods/Target Support Files/Pods-FEPopupMenuControllerDemo/Pods-FEPopupMenuControllerDemo.debug.xcconfig"; sourceTree = "<group>"; };
31+
875BACFEEB65F9B581405091 /* Pods-FEPopupMenuControllerDemo.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-FEPopupMenuControllerDemo.release.xcconfig"; path = "Pods/Target Support Files/Pods-FEPopupMenuControllerDemo/Pods-FEPopupMenuControllerDemo.release.xcconfig"; sourceTree = "<group>"; };
32+
E5B62A164659C0B7FA0F4F9E /* libPods-FEPopupMenuControllerDemo.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-FEPopupMenuControllerDemo.a"; sourceTree = BUILT_PRODUCTS_DIR; };
4333
/* End PBXFileReference section */
4434

4535
/* Begin PBXFrameworksBuildPhase section */
4636
0BBE73071C5B483700DEF2EE /* Frameworks */ = {
4737
isa = PBXFrameworksBuildPhase;
4838
buildActionMask = 2147483647;
4939
files = (
40+
DB639C4A19232AA1CF4C0DCC /* libPods-FEPopupMenuControllerDemo.a in Frameworks */,
5041
);
5142
runOnlyForDeploymentPostprocessing = 0;
5243
};
@@ -56,9 +47,10 @@
5647
0BBE73011C5B483700DEF2EE = {
5748
isa = PBXGroup;
5849
children = (
59-
0BBE73391C5B4F5A00DEF2EE /* FEPopupMenuController */,
6050
0BBE730C1C5B483700DEF2EE /* FEPopupMenuControllerDemo */,
6151
0BBE730B1C5B483700DEF2EE /* Products */,
52+
E2DF1F347EFA076B1545F3D4 /* Pods */,
53+
CBAE092EED0E0F3FC24F720F /* Frameworks */,
6254
);
6355
sourceTree = "<group>";
6456
};
@@ -94,21 +86,21 @@
9486
name = "Supporting Files";
9587
sourceTree = "<group>";
9688
};
97-
0BBE73391C5B4F5A00DEF2EE /* FEPopupMenuController */ = {
89+
CBAE092EED0E0F3FC24F720F /* Frameworks */ = {
9890
isa = PBXGroup;
9991
children = (
100-
0BBE733A1C5B4F5A00DEF2EE /* FEPopupMenuController.h */,
101-
0BBE733B1C5B4F5A00DEF2EE /* FEPopupMenuController.m */,
102-
0BBE733C1C5B4F5A00DEF2EE /* FEPopupMenuItem.h */,
103-
0BBE733D1C5B4F5A00DEF2EE /* FEPopupMenuItem.m */,
104-
0B690B991C5B68A200A06C36 /* FEPopupMenuItemCell.h */,
105-
0B690B9A1C5B68A200A06C36 /* FEPopupMenuItemCell.m */,
106-
0B690B9B1C5B68A200A06C36 /* FEPopupMenuItemCell.xib */,
107-
0B62DA0C1CE9727300EE684E /* FEPopupMenuControllerAnimatedTransitioning.h */,
108-
0B62DA0D1CE9727300EE684E /* FEPopupMenuControllerAnimatedTransitioning.m */,
92+
E5B62A164659C0B7FA0F4F9E /* libPods-FEPopupMenuControllerDemo.a */,
10993
);
110-
name = FEPopupMenuController;
111-
path = ../FEPopupMenuController;
94+
name = Frameworks;
95+
sourceTree = "<group>";
96+
};
97+
E2DF1F347EFA076B1545F3D4 /* Pods */ = {
98+
isa = PBXGroup;
99+
children = (
100+
790B61A08958F53058EDE921 /* Pods-FEPopupMenuControllerDemo.debug.xcconfig */,
101+
875BACFEEB65F9B581405091 /* Pods-FEPopupMenuControllerDemo.release.xcconfig */,
102+
);
103+
name = Pods;
112104
sourceTree = "<group>";
113105
};
114106
/* End PBXGroup section */
@@ -118,9 +110,12 @@
118110
isa = PBXNativeTarget;
119111
buildConfigurationList = 0BBE73211C5B483700DEF2EE /* Build configuration list for PBXNativeTarget "FEPopupMenuControllerDemo" */;
120112
buildPhases = (
113+
247466CA52F95FE7E68B3054 /* [CP] Check Pods Manifest.lock */,
121114
0BBE73061C5B483700DEF2EE /* Sources */,
122115
0BBE73071C5B483700DEF2EE /* Frameworks */,
123116
0BBE73081C5B483700DEF2EE /* Resources */,
117+
9B2D9B6426C9793607C0DD9F /* [CP] Embed Pods Frameworks */,
118+
4A434AFC3E92BF416FB6AFEC /* [CP] Copy Pods Resources */,
124119
);
125120
buildRules = (
126121
);
@@ -172,24 +167,67 @@
172167
0BBE731D1C5B483700DEF2EE /* LaunchScreen.storyboard in Resources */,
173168
0BBE731A1C5B483700DEF2EE /* Assets.xcassets in Resources */,
174169
0BBE73181C5B483700DEF2EE /* Main.storyboard in Resources */,
175-
0B690B9D1C5B68A200A06C36 /* FEPopupMenuItemCell.xib in Resources */,
176170
);
177171
runOnlyForDeploymentPostprocessing = 0;
178172
};
179173
/* End PBXResourcesBuildPhase section */
180174

175+
/* Begin PBXShellScriptBuildPhase section */
176+
247466CA52F95FE7E68B3054 /* [CP] Check Pods Manifest.lock */ = {
177+
isa = PBXShellScriptBuildPhase;
178+
buildActionMask = 2147483647;
179+
files = (
180+
);
181+
inputPaths = (
182+
);
183+
name = "[CP] Check Pods Manifest.lock";
184+
outputPaths = (
185+
);
186+
runOnlyForDeploymentPostprocessing = 0;
187+
shellPath = /bin/sh;
188+
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";
189+
showEnvVarsInLog = 0;
190+
};
191+
4A434AFC3E92BF416FB6AFEC /* [CP] Copy Pods Resources */ = {
192+
isa = PBXShellScriptBuildPhase;
193+
buildActionMask = 2147483647;
194+
files = (
195+
);
196+
inputPaths = (
197+
);
198+
name = "[CP] Copy Pods Resources";
199+
outputPaths = (
200+
);
201+
runOnlyForDeploymentPostprocessing = 0;
202+
shellPath = /bin/sh;
203+
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-FEPopupMenuControllerDemo/Pods-FEPopupMenuControllerDemo-resources.sh\"\n";
204+
showEnvVarsInLog = 0;
205+
};
206+
9B2D9B6426C9793607C0DD9F /* [CP] Embed Pods Frameworks */ = {
207+
isa = PBXShellScriptBuildPhase;
208+
buildActionMask = 2147483647;
209+
files = (
210+
);
211+
inputPaths = (
212+
);
213+
name = "[CP] Embed Pods Frameworks";
214+
outputPaths = (
215+
);
216+
runOnlyForDeploymentPostprocessing = 0;
217+
shellPath = /bin/sh;
218+
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-FEPopupMenuControllerDemo/Pods-FEPopupMenuControllerDemo-frameworks.sh\"\n";
219+
showEnvVarsInLog = 0;
220+
};
221+
/* End PBXShellScriptBuildPhase section */
222+
181223
/* Begin PBXSourcesBuildPhase section */
182224
0BBE73061C5B483700DEF2EE /* Sources */ = {
183225
isa = PBXSourcesBuildPhase;
184226
buildActionMask = 2147483647;
185227
files = (
186-
0BBE733F1C5B4F5A00DEF2EE /* FEPopupMenuItem.m in Sources */,
187-
0B62DA0E1CE9727300EE684E /* FEPopupMenuControllerAnimatedTransitioning.m in Sources */,
188228
0BBE73151C5B483700DEF2EE /* ViewController.m in Sources */,
189229
0BBE73121C5B483700DEF2EE /* AppDelegate.m in Sources */,
190-
0BBE733E1C5B4F5A00DEF2EE /* FEPopupMenuController.m in Sources */,
191230
0BBE730F1C5B483700DEF2EE /* main.m in Sources */,
192-
0B690B9C1C5B68A200A06C36 /* FEPopupMenuItemCell.m in Sources */,
193231
);
194232
runOnlyForDeploymentPostprocessing = 0;
195233
};
@@ -301,6 +339,7 @@
301339
};
302340
0BBE73221C5B483700DEF2EE /* Debug */ = {
303341
isa = XCBuildConfiguration;
342+
baseConfigurationReference = 790B61A08958F53058EDE921 /* Pods-FEPopupMenuControllerDemo.debug.xcconfig */;
304343
buildSettings = {
305344
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
306345
CODE_SIGN_IDENTITY = "iPhone Developer";
@@ -315,6 +354,7 @@
315354
};
316355
0BBE73231C5B483700DEF2EE /* Release */ = {
317356
isa = XCBuildConfiguration;
357+
baseConfigurationReference = 875BACFEEB65F9B581405091 /* Pods-FEPopupMenuControllerDemo.release.xcconfig */;
318358
buildSettings = {
319359
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
320360
CODE_SIGN_IDENTITY = "iPhone Developer";

FEPopupMenuControllerDemo/FEPopupMenuControllerDemo.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.

FEPopupMenuControllerDemo/Podfile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Uncomment the next line to define a global platform for your project
2+
# platform :ios, '9.0'
3+
4+
target 'FEPopupMenuControllerDemo' do
5+
# Uncomment the next line if you're using Swift or would like to use dynamic frameworks
6+
# use_frameworks!
7+
8+
# Pods for FEPopupMenuControllerDemo
9+
pod 'FEPopupMenuController', :path => '../'
10+
11+
end
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
PODS:
2+
- FEPopupMenuController (0.0.2)
3+
4+
DEPENDENCIES:
5+
- FEPopupMenuController (from `../`)
6+
7+
EXTERNAL SOURCES:
8+
FEPopupMenuController:
9+
:path: "../"
10+
11+
SPEC CHECKSUMS:
12+
FEPopupMenuController: a7b8314f723c39339160000d74cf7f4ae2760ed8
13+
14+
PODFILE CHECKSUM: 319986901d1c140b4b3145392ee2beb065467c11
15+
16+
COCOAPODS: 1.1.0.rc.2

0 commit comments

Comments
 (0)