Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit f6b71a7

Browse files
Merge pull request #361 from rcvrgs/fix/cocoapods
Fix Podfile of sample app
2 parents 64a2692 + feafb13 commit f6b71a7

File tree

4 files changed

+15
-7
lines changed

4 files changed

+15
-7
lines changed

Project/youtube-player-ios-example/Podfile

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,14 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
pod "youtube-ios-player-helper", :path => "../../youtube-ios-player-helper.podspec"
15+
platform :ios, '11.0'
16+
inhibit_all_warnings!
17+
use_frameworks!
1618

17-
target "youtube-player-ios-exampleTests", :exclusive => true do
19+
target "youtube-player-ios-example" do
20+
pod "youtube-ios-player-helper", :path => "../../youtube-ios-player-helper.podspec"
21+
22+
target "youtube-player-ios-exampleTests" do
1823
pod "OCMock", "3.1.2"
24+
end
1925
end

Project/youtube-player-ios-example/youtube-player-ios-example.xcodeproj/project.pbxproj

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@
5959
4D69941B18E22EE10073680F /* PlaylistViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PlaylistViewController.h; sourceTree = "<group>"; };
6060
4D69941C18E22EE10073680F /* PlaylistViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = PlaylistViewController.m; sourceTree = "<group>"; };
6161
4D69942118E22F000073680F /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
62-
5EDBAF28CE586F953081FFD5 /* Pods.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = Pods.debug.xcconfig; path = "Pods/Target Support Files/Pods/Pods.debug.xcconfig"; sourceTree = "<group>"; };
6362
614CB957CD094425884C83E1 /* libPods.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libPods.a; sourceTree = BUILT_PRODUCTS_DIR; };
6463
97FE8C7A7A914485BBD9A3D4 /* libPods-youtube-player-ios-exampleTests.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-youtube-player-ios-exampleTests.a"; sourceTree = BUILT_PRODUCTS_DIR; };
6564
9F1A73947F21B4AC48269A4E /* Pods.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = Pods.debug.xcconfig; path = "Pods/Target Support Files/Pods/Pods.debug.xcconfig"; sourceTree = "<group>"; };
@@ -243,6 +242,7 @@
243242
developmentRegion = English;
244243
hasScannedForEncodings = 0;
245244
knownRegions = (
245+
English,
246246
en,
247247
Base,
248248
);
@@ -470,6 +470,7 @@
470470
GCC_PRECOMPILE_PREFIX_HEADER = YES;
471471
GCC_PREFIX_HEADER = "youtube-player-ios-example/youtube-player-ios-example-Prefix.pch";
472472
INFOPLIST_FILE = "youtube-player-ios-example/youtube-player-ios-example-Info.plist";
473+
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
473474
PRODUCT_NAME = "$(TARGET_NAME)";
474475
TARGETED_DEVICE_FAMILY = "1,2";
475476
WRAPPER_EXTENSION = app;
@@ -485,6 +486,7 @@
485486
GCC_PRECOMPILE_PREFIX_HEADER = YES;
486487
GCC_PREFIX_HEADER = "youtube-player-ios-example/youtube-player-ios-example-Prefix.pch";
487488
INFOPLIST_FILE = "youtube-player-ios-example/youtube-player-ios-example-Info.plist";
489+
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
488490
PRODUCT_NAME = "$(TARGET_NAME)";
489491
TARGETED_DEVICE_FAMILY = "1,2";
490492
WRAPPER_EXTENSION = app;

Project/youtube-player-ios-example/youtube-player-ios-example/PlaylistViewController.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
#import "YTPlayerView.h"
15+
#import <youtube_ios_player_helper/YTPlayerView.h>
1616

1717
@interface PlaylistViewController : UIViewController<YTPlayerViewDelegate>
1818

@@ -26,4 +26,4 @@
2626

2727
- (IBAction)buttonPressed:(id)sender;
2828

29-
@end
29+
@end

Project/youtube-player-ios-example/youtube-player-ios-example/SingleVideoViewController.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
#import <UIKit/UIKit.h>
1616

17-
#import "YTPlayerView.h"
17+
#import <youtube_ios_player_helper/YTPlayerView.h>
1818

1919
@interface SingleVideoViewController : UIViewController<YTPlayerViewDelegate>
2020

@@ -33,4 +33,4 @@
3333

3434
- (IBAction)buttonPressed:(id)sender;
3535

36-
@end
36+
@end

0 commit comments

Comments
 (0)