Skip to content

Commit

Permalink
1.2.6
Browse files Browse the repository at this point in the history
Fixed #31
• Carthage support
• Bug fix for CocoaPods
  • Loading branch information
JonasGessner committed May 14, 2015
1 parent 3bf02f3 commit 48fd0e4
Show file tree
Hide file tree
Showing 7 changed files with 199 additions and 70 deletions.
26 changes: 13 additions & 13 deletions JGProgressHUD.podspec
@@ -1,17 +1,17 @@
Pod::Spec.new do |s|

s.name = "JGProgressHUD"
s.version = "1.2.5"
s.summary = "Powerful and modern progress HUD for iOS."
s.homepage = "https://github.com/JonasGessner/JGProgressHUD"
s.license = { :type => "MIT", :file => "LICENSE.txt" }
s.author = "Jonas Gessner"
s.social_media_url = "http://twitter.com/JonasGessner"
s.platform = :ios, "5.0"
s.source = { :git => "https://github.com/JonasGessner/JGProgressHUD.git", :tag => "v1.2.5" }
s.source_files = "JGProgressHUD/JGProgressHUD/*.{h,m}"
s.resources = "JGProgressHUD/JGProgressHUD/JGProgressHUD Resources.bundle"
s.frameworks = "Foundation", "UIKit", "QuartzCore"
s.requires_arc = true
s.name = "JGProgressHUD"
s.version = "1.2.6"
s.summary = "Powerful and modern progress HUD for iOS."
s.homepage = "https://github.com/JonasGessner/JGProgressHUD"
s.license = { :type => "MIT", :file => "LICENSE.txt" }
s.author = "Jonas Gessner"
s.social_media_url = "http://twitter.com/JonasGessner"
s.platform = :ios, "5.0"
s.source = { :git => "https://github.com/JonasGessner/JGProgressHUD.git", :tag => "v1.2.6" }
s.source_files = "JGProgressHUD/JGProgressHUD/*.{h,m}"
s.resource = "JGProgressHUD/JGProgressHUD/JGProgressHUD Resources.bundle"
s.frameworks = "Foundation", "UIKit", "QuartzCore"
s.requires_arc = true

end
2 changes: 1 addition & 1 deletion JGProgressHUD/JGProgressHUD Framework/Info.plist
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>1.2.5</string>
<string>1.2.6</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
Expand Down
90 changes: 50 additions & 40 deletions JGProgressHUD/JGProgressHUD.xcodeproj/project.pbxproj
Expand Up @@ -15,6 +15,7 @@
6B60B27619A3C34D00ED1A4E /* jg_hud_error@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 6B60B27219A3C34D00ED1A4E /* jg_hud_error@2x.png */; };
6B60B27719A3C34D00ED1A4E /* jg_hud_success.png in Resources */ = {isa = PBXBuildFile; fileRef = 6B60B27319A3C34D00ED1A4E /* jg_hud_success.png */; };
6B60B27819A3C34D00ED1A4E /* jg_hud_success@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 6B60B27419A3C34D00ED1A4E /* jg_hud_success@2x.png */; };
6B8435B61B04F44D004408CE /* JGProgressHUD Resources.bundle in Resources */ = {isa = PBXBuildFile; fileRef = 6B60B24019A3B3C500ED1A4E /* JGProgressHUD Resources.bundle */; };
6BC01877197B2AA500DA4C49 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6BC01876197B2AA500DA4C49 /* Foundation.framework */; };
6BC018AC197B2ABF00DA4C49 /* JGProgressHUD.m in Sources */ = {isa = PBXBuildFile; fileRef = 6BC0189D197B2ABF00DA4C49 /* JGProgressHUD.m */; };
6BC018AD197B2ABF00DA4C49 /* JGProgressHUDAnimation.m in Sources */ = {isa = PBXBuildFile; fileRef = 6BC0189F197B2ABF00DA4C49 /* JGProgressHUDAnimation.m */; };
Expand All @@ -26,22 +27,16 @@
6BC018B3197B2ABF00DA4C49 /* JGProgressHUDRingIndicatorView.m in Sources */ = {isa = PBXBuildFile; fileRef = 6BC018AB197B2ABF00DA4C49 /* JGProgressHUDRingIndicatorView.m */; };
6BC018B7197B2BC700DA4C49 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6BC018B6197B2BC700DA4C49 /* UIKit.framework */; };
6BC018B9197B2BCB00DA4C49 /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6BC018B8197B2BCB00DA4C49 /* QuartzCore.framework */; };
6BD1FA1D1AF1216800139990 /* jg_hud_error.png in Resources */ = {isa = PBXBuildFile; fileRef = 6B60B27119A3C34D00ED1A4E /* jg_hud_error.png */; };
6BD1FA1E1AF1216800139990 /* jg_hud_error@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 6B60B27219A3C34D00ED1A4E /* jg_hud_error@2x.png */; };
6BD1FA1F1AF1216800139990 /* jg_hud_error@3x.png in Resources */ = {isa = PBXBuildFile; fileRef = 6B29118C19CA0D4500E93DF9 /* jg_hud_error@3x.png */; };
6BD1FA201AF1216800139990 /* jg_hud_success.png in Resources */ = {isa = PBXBuildFile; fileRef = 6B60B27319A3C34D00ED1A4E /* jg_hud_success.png */; };
6BD1FA211AF1216800139990 /* jg_hud_success@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 6B60B27419A3C34D00ED1A4E /* jg_hud_success@2x.png */; };
6BD1FA221AF1216800139990 /* jg_hud_success@3x.png in Resources */ = {isa = PBXBuildFile; fileRef = 6B29118D19CA0D4500E93DF9 /* jg_hud_success@3x.png */; };
6BF7DC4B1AEE6D39000A0AE0 /* JGProgressHUD.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = 6BC0189C197B2ABF00DA4C49 /* JGProgressHUD.h */; };
6BF7DC4C1AEE6D39000A0AE0 /* JGProgressHUDAnimation.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = 6BC0189E197B2ABF00DA4C49 /* JGProgressHUDAnimation.h */; };
6BF7DC4D1AEE6D39000A0AE0 /* JGProgressHUDFadeAnimation.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = 6BC018A0197B2ABF00DA4C49 /* JGProgressHUDFadeAnimation.h */; };
6BF7DC4E1AEE6D39000A0AE0 /* JGProgressHUDFadeZoomAnimation.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = 6BC018A2197B2ABF00DA4C49 /* JGProgressHUDFadeZoomAnimation.h */; };
6BF7DC4F1AEE6D39000A0AE0 /* JGProgressHUDIndicatorView.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = 6BC018A6197B2ABF00DA4C49 /* JGProgressHUDIndicatorView.h */; };
6BF7DC501AEE6D39000A0AE0 /* JGProgressHUDIndeterminateIndicatorView.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = 6BC018A4197B2ABF00DA4C49 /* JGProgressHUDIndeterminateIndicatorView.h */; };
6BF7DC511AEE6D39000A0AE0 /* JGProgressHUDPieIndicatorView.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = 6BC018A8197B2ABF00DA4C49 /* JGProgressHUDPieIndicatorView.h */; };
6BF7DC521AEE6D39000A0AE0 /* JGProgressHUDRingIndicatorView.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = 6BC018AA197B2ABF00DA4C49 /* JGProgressHUDRingIndicatorView.h */; };
6BF7DC531AEE6D39000A0AE0 /* JGProgressHUDSuccessIndicatorView.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = 6B60B25219A3B78B00ED1A4E /* JGProgressHUDSuccessIndicatorView.h */; };
6BF7DC541AEE6D39000A0AE0 /* JGProgressHUDErrorIndicatorView.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = 6B60B25519A3BC3C00ED1A4E /* JGProgressHUDErrorIndicatorView.h */; };
6BF7DC4B1AEE6D39000A0AE0 /* JGProgressHUD.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 6BC0189C197B2ABF00DA4C49 /* JGProgressHUD.h */; };
6BF7DC4C1AEE6D39000A0AE0 /* JGProgressHUDAnimation.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 6BC0189E197B2ABF00DA4C49 /* JGProgressHUDAnimation.h */; };
6BF7DC4D1AEE6D39000A0AE0 /* JGProgressHUDFadeAnimation.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 6BC018A0197B2ABF00DA4C49 /* JGProgressHUDFadeAnimation.h */; };
6BF7DC4E1AEE6D39000A0AE0 /* JGProgressHUDFadeZoomAnimation.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 6BC018A2197B2ABF00DA4C49 /* JGProgressHUDFadeZoomAnimation.h */; };
6BF7DC4F1AEE6D39000A0AE0 /* JGProgressHUDIndicatorView.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 6BC018A6197B2ABF00DA4C49 /* JGProgressHUDIndicatorView.h */; };
6BF7DC501AEE6D39000A0AE0 /* JGProgressHUDIndeterminateIndicatorView.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 6BC018A4197B2ABF00DA4C49 /* JGProgressHUDIndeterminateIndicatorView.h */; };
6BF7DC511AEE6D39000A0AE0 /* JGProgressHUDPieIndicatorView.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 6BC018A8197B2ABF00DA4C49 /* JGProgressHUDPieIndicatorView.h */; };
6BF7DC521AEE6D39000A0AE0 /* JGProgressHUDRingIndicatorView.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 6BC018AA197B2ABF00DA4C49 /* JGProgressHUDRingIndicatorView.h */; };
6BF7DC531AEE6D39000A0AE0 /* JGProgressHUDSuccessIndicatorView.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 6B60B25219A3B78B00ED1A4E /* JGProgressHUDSuccessIndicatorView.h */; };
6BF7DC541AEE6D39000A0AE0 /* JGProgressHUDErrorIndicatorView.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 6B60B25519A3BC3C00ED1A4E /* JGProgressHUDErrorIndicatorView.h */; };
6BF7DC731AEFD02A000A0AE0 /* JGProgressHUD.m in Sources */ = {isa = PBXBuildFile; fileRef = 6BC0189D197B2ABF00DA4C49 /* JGProgressHUD.m */; };
6BF7DC741AEFD02A000A0AE0 /* JGProgressHUDAnimation.m in Sources */ = {isa = PBXBuildFile; fileRef = 6BC0189F197B2ABF00DA4C49 /* JGProgressHUDAnimation.m */; };
6BF7DC751AEFD02A000A0AE0 /* JGProgressHUDFadeAnimation.m in Sources */ = {isa = PBXBuildFile; fileRef = 6BC018A1197B2ABF00DA4C49 /* JGProgressHUDFadeAnimation.m */; };
Expand All @@ -66,28 +61,39 @@
6BF7DC8A1AEFD066000A0AE0 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6BC01876197B2AA500DA4C49 /* Foundation.framework */; };
6BF7DC8B1AEFD072000A0AE0 /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6BC018B8197B2BCB00DA4C49 /* QuartzCore.framework */; };
6BF7DC931AEFD35D000A0AE0 /* JGProgressHUD-Defines.h in Headers */ = {isa = PBXBuildFile; fileRef = 6BF7DC921AEFD245000A0AE0 /* JGProgressHUD-Defines.h */; settings = {ATTRIBUTES = (Public, ); }; };
6BF7DC941AEFD366000A0AE0 /* JGProgressHUD-Defines.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = 6BF7DC921AEFD245000A0AE0 /* JGProgressHUD-Defines.h */; };
6BF7DC941AEFD366000A0AE0 /* JGProgressHUD-Defines.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 6BF7DC921AEFD245000A0AE0 /* JGProgressHUD-Defines.h */; };
/* End PBXBuildFile section */

/* Begin PBXContainerItemProxy section */
6B8435B71B04F454004408CE /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 6BC0186B197B2AA500DA4C49 /* Project object */;
proxyType = 1;
remoteGlobalIDString = 6B60B23F19A3B3C500ED1A4E;
remoteInfo = "JGProgressHUD Resources";
};
/* End PBXContainerItemProxy section */

/* Begin PBXCopyFilesBuildPhase section */
6BF7DC4A1AEE6D1D000A0AE0 /* CopyFiles */ = {
6BF7DC4A1AEE6D1D000A0AE0 /* Copy Headers */ = {
isa = PBXCopyFilesBuildPhase;
buildActionMask = 2147483647;
dstPath = include;
dstSubfolderSpec = 16;
files = (
6BF7DC4B1AEE6D39000A0AE0 /* JGProgressHUD.h in CopyFiles */,
6BF7DC4C1AEE6D39000A0AE0 /* JGProgressHUDAnimation.h in CopyFiles */,
6BF7DC4D1AEE6D39000A0AE0 /* JGProgressHUDFadeAnimation.h in CopyFiles */,
6BF7DC4E1AEE6D39000A0AE0 /* JGProgressHUDFadeZoomAnimation.h in CopyFiles */,
6BF7DC4F1AEE6D39000A0AE0 /* JGProgressHUDIndicatorView.h in CopyFiles */,
6BF7DC941AEFD366000A0AE0 /* JGProgressHUD-Defines.h in CopyFiles */,
6BF7DC501AEE6D39000A0AE0 /* JGProgressHUDIndeterminateIndicatorView.h in CopyFiles */,
6BF7DC511AEE6D39000A0AE0 /* JGProgressHUDPieIndicatorView.h in CopyFiles */,
6BF7DC521AEE6D39000A0AE0 /* JGProgressHUDRingIndicatorView.h in CopyFiles */,
6BF7DC531AEE6D39000A0AE0 /* JGProgressHUDSuccessIndicatorView.h in CopyFiles */,
6BF7DC541AEE6D39000A0AE0 /* JGProgressHUDErrorIndicatorView.h in CopyFiles */,
);
6BF7DC4B1AEE6D39000A0AE0 /* JGProgressHUD.h in Copy Headers */,
6BF7DC4C1AEE6D39000A0AE0 /* JGProgressHUDAnimation.h in Copy Headers */,
6BF7DC4D1AEE6D39000A0AE0 /* JGProgressHUDFadeAnimation.h in Copy Headers */,
6BF7DC4E1AEE6D39000A0AE0 /* JGProgressHUDFadeZoomAnimation.h in Copy Headers */,
6BF7DC4F1AEE6D39000A0AE0 /* JGProgressHUDIndicatorView.h in Copy Headers */,
6BF7DC941AEFD366000A0AE0 /* JGProgressHUD-Defines.h in Copy Headers */,
6BF7DC501AEE6D39000A0AE0 /* JGProgressHUDIndeterminateIndicatorView.h in Copy Headers */,
6BF7DC511AEE6D39000A0AE0 /* JGProgressHUDPieIndicatorView.h in Copy Headers */,
6BF7DC521AEE6D39000A0AE0 /* JGProgressHUDRingIndicatorView.h in Copy Headers */,
6BF7DC531AEE6D39000A0AE0 /* JGProgressHUDSuccessIndicatorView.h in Copy Headers */,
6BF7DC541AEE6D39000A0AE0 /* JGProgressHUDErrorIndicatorView.h in Copy Headers */,
);
name = "Copy Headers";
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXCopyFilesBuildPhase section */
Expand Down Expand Up @@ -216,7 +222,7 @@
6BC0189D197B2ABF00DA4C49 /* JGProgressHUD.m */,
6BF7DC921AEFD245000A0AE0 /* JGProgressHUD-Defines.h */,
6BC018B4197B2AC300DA4C49 /* Animations */,
6BC018B5197B2ACB00DA4C49 /* Progress Indicators */,
6BC018B5197B2ACB00DA4C49 /* Indicators */,
6B60B26819A3C20100ED1A4E /* Resources */,
);
path = JGProgressHUD;
Expand Down Expand Up @@ -244,7 +250,7 @@
name = Animations;
sourceTree = "<group>";
};
6BC018B5197B2ACB00DA4C49 /* Progress Indicators */ = {
6BC018B5197B2ACB00DA4C49 /* Indicators */ = {
isa = PBXGroup;
children = (
6BC018A6197B2ABF00DA4C49 /* JGProgressHUDIndicatorView.h */,
Expand All @@ -260,7 +266,7 @@
6B60B25519A3BC3C00ED1A4E /* JGProgressHUDErrorIndicatorView.h */,
6B60B25619A3BC3C00ED1A4E /* JGProgressHUDErrorIndicatorView.m */,
);
name = "Progress Indicators";
name = Indicators;
sourceTree = "<group>";
};
6BF7DC5B1AEFCFD9000A0AE0 /* JGProgressHUD Framework */ = {
Expand Down Expand Up @@ -326,7 +332,7 @@
buildPhases = (
6BC0186F197B2AA500DA4C49 /* Sources */,
6BC01870197B2AA500DA4C49 /* Frameworks */,
6BF7DC4A1AEE6D1D000A0AE0 /* CopyFiles */,
6BF7DC4A1AEE6D1D000A0AE0 /* Copy Headers */,
);
buildRules = (
);
Expand All @@ -349,6 +355,7 @@
buildRules = (
);
dependencies = (
6B8435B81B04F454004408CE /* PBXTargetDependency */,
);
name = "JGProgressHUD Framework";
productName = "JGProgressHUD Framework";
Expand Down Expand Up @@ -409,12 +416,7 @@
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
6BD1FA1D1AF1216800139990 /* jg_hud_error.png in Resources */,
6BD1FA1E1AF1216800139990 /* jg_hud_error@2x.png in Resources */,
6BD1FA1F1AF1216800139990 /* jg_hud_error@3x.png in Resources */,
6BD1FA201AF1216800139990 /* jg_hud_success.png in Resources */,
6BD1FA211AF1216800139990 /* jg_hud_success@2x.png in Resources */,
6BD1FA221AF1216800139990 /* jg_hud_success@3x.png in Resources */,
6B8435B61B04F44D004408CE /* JGProgressHUD Resources.bundle in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -464,6 +466,14 @@
};
/* End PBXSourcesBuildPhase section */

/* Begin PBXTargetDependency section */
6B8435B81B04F454004408CE /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
target = 6B60B23F19A3B3C500ED1A4E /* JGProgressHUD Resources */;
targetProxy = 6B8435B71B04F454004408CE /* PBXContainerItemProxy */;
};
/* End PBXTargetDependency section */

/* Begin XCBuildConfiguration section */
6B60B24519A3B3C500ED1A4E /* Debug */ = {
isa = XCBuildConfiguration;
Expand Down
@@ -0,0 +1,110 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0630"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "6BF7DC591AEFCFD9000A0AE0"
BuildableName = "JGProgressHUD.framework"
BlueprintName = "JGProgressHUD Framework"
ReferencedContainer = "container:JGProgressHUD.xcodeproj">
</BuildableReference>
</BuildActionEntry>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "NO"
buildForArchiving = "NO"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "6BF7DC631AEFCFD9000A0AE0"
BuildableName = "JGProgressHUD FrameworkTests.xctest"
BlueprintName = "JGProgressHUD FrameworkTests"
ReferencedContainer = "container:JGProgressHUD.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
buildConfiguration = "Debug">
<Testables>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "6BF7DC631AEFCFD9000A0AE0"
BuildableName = "JGProgressHUD FrameworkTests.xctest"
BlueprintName = "JGProgressHUD FrameworkTests"
ReferencedContainer = "container:JGProgressHUD.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "6BF7DC591AEFCFD9000A0AE0"
BuildableName = "JGProgressHUD.framework"
BlueprintName = "JGProgressHUD Framework"
ReferencedContainer = "container:JGProgressHUD.xcodeproj">
</BuildableReference>
</MacroExpansion>
</TestAction>
<LaunchAction
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
buildConfiguration = "Debug"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
allowLocationSimulation = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "6BF7DC591AEFCFD9000A0AE0"
BuildableName = "JGProgressHUD.framework"
BlueprintName = "JGProgressHUD Framework"
ReferencedContainer = "container:JGProgressHUD.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
buildConfiguration = "Release"
debugDocumentVersioning = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "6BF7DC591AEFCFD9000A0AE0"
BuildableName = "JGProgressHUD.framework"
BlueprintName = "JGProgressHUD Framework"
ReferencedContainer = "container:JGProgressHUD.xcodeproj">
</BuildableReference>
</MacroExpansion>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
7 changes: 2 additions & 5 deletions JGProgressHUD/JGProgressHUD/JGProgressHUDErrorIndicatorView.m
Expand Up @@ -12,12 +12,9 @@
@implementation JGProgressHUDErrorIndicatorView

- (instancetype)initWithContentView:(UIView *__unused)contentView {
NSBundle *fwBundle = [NSBundle bundleForClass:[JGProgressHUD class]];
if ([fwBundle isEqual:[NSBundle mainBundle]]) {
fwBundle = nil;
}
NSBundle *resourceBundle = [NSBundle bundleWithPath:[[NSBundle bundleForClass:[JGProgressHUD class]] pathForResource:@"JGProgressHUD Resources" ofType:@"bundle"]];

NSString *imgPath = [(fwBundle ? : [NSBundle bundleWithPath:[[NSBundle mainBundle] pathForResource:@"JGProgressHUD Resources" ofType:@"bundle"]]) pathForResource:@"jg_hud_error" ofType:@"png"];
NSString *imgPath = [resourceBundle pathForResource:@"jg_hud_error" ofType:@"png"];

UIImageView *imageView = [[UIImageView alloc] initWithImage:[UIImage imageWithContentsOfFile:imgPath]];

Expand Down

0 comments on commit 48fd0e4

Please sign in to comment.