Skip to content

Commit ae00da5

Browse files
Merge pull request #6 from studyplus/build_Xcode8
build by Xcode8 or above
2 parents def213c + 210e69d commit ae00da5

File tree

5 files changed

+55
-31
lines changed

5 files changed

+55
-31
lines changed

Demo/StudyplusSDKDemo/StudyplusSDKDemo.xcodeproj/project.pbxproj

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@
381381
4388599218B1E90A0063BBC8 /* Project object */ = {
382382
isa = PBXProject;
383383
attributes = {
384-
LastUpgradeCheck = 0730;
384+
LastUpgradeCheck = 0820;
385385
ORGANIZATIONNAME = studyplus.jp;
386386
TargetAttributes = {
387387
438859BA18B1E90A0063BBC8 = {
@@ -524,14 +524,19 @@
524524
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
525525
CLANG_WARN_EMPTY_BODY = YES;
526526
CLANG_WARN_ENUM_CONVERSION = YES;
527+
CLANG_WARN_INFINITE_RECURSION = YES;
527528
CLANG_WARN_INT_CONVERSION = YES;
528529
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
530+
CLANG_WARN_SUSPICIOUS_MOVE = YES;
531+
CLANG_WARN_UNREACHABLE_CODE = YES;
529532
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
530533
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
531534
COPY_PHASE_STRIP = NO;
535+
ENABLE_STRICT_OBJC_MSGSEND = YES;
532536
ENABLE_TESTABILITY = YES;
533537
GCC_C_LANGUAGE_STANDARD = gnu99;
534538
GCC_DYNAMIC_NO_PIC = NO;
539+
GCC_NO_COMMON_BLOCKS = YES;
535540
GCC_OPTIMIZATION_LEVEL = 0;
536541
GCC_PREPROCESSOR_DEFINITIONS = (
537542
"DEBUG=1",
@@ -544,7 +549,7 @@
544549
GCC_WARN_UNINITIALIZED_AUTOS = YES;
545550
GCC_WARN_UNUSED_FUNCTION = YES;
546551
GCC_WARN_UNUSED_VARIABLE = YES;
547-
IPHONEOS_DEPLOYMENT_TARGET = 7.0;
552+
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
548553
ONLY_ACTIVE_ARCH = YES;
549554
SDKROOT = iphoneos;
550555
};
@@ -563,20 +568,25 @@
563568
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
564569
CLANG_WARN_EMPTY_BODY = YES;
565570
CLANG_WARN_ENUM_CONVERSION = YES;
571+
CLANG_WARN_INFINITE_RECURSION = YES;
566572
CLANG_WARN_INT_CONVERSION = YES;
567573
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
574+
CLANG_WARN_SUSPICIOUS_MOVE = YES;
575+
CLANG_WARN_UNREACHABLE_CODE = YES;
568576
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
569577
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
570578
COPY_PHASE_STRIP = YES;
571579
ENABLE_NS_ASSERTIONS = NO;
580+
ENABLE_STRICT_OBJC_MSGSEND = YES;
572581
GCC_C_LANGUAGE_STANDARD = gnu99;
582+
GCC_NO_COMMON_BLOCKS = YES;
573583
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
574584
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
575585
GCC_WARN_UNDECLARED_SELECTOR = YES;
576586
GCC_WARN_UNINITIALIZED_AUTOS = YES;
577587
GCC_WARN_UNUSED_FUNCTION = YES;
578588
GCC_WARN_UNUSED_VARIABLE = YES;
579-
IPHONEOS_DEPLOYMENT_TARGET = 7.0;
589+
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
580590
SDKROOT = iphoneos;
581591
VALIDATE_PRODUCT = YES;
582592
};
@@ -587,6 +597,7 @@
587597
buildSettings = {
588598
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
589599
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
600+
DEVELOPMENT_TEAM = "";
590601
GCC_PRECOMPILE_PREFIX_HEADER = YES;
591602
GCC_PREFIX_HEADER = "StudyplusSDKDemo/StudyplusSDKDemo-Prefix.pch";
592603
INFOPLIST_FILE = "StudyplusSDKDemo/StudyplusSDKDemo-Info.plist";
@@ -601,6 +612,7 @@
601612
buildSettings = {
602613
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
603614
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
615+
DEVELOPMENT_TEAM = "";
604616
GCC_PRECOMPILE_PREFIX_HEADER = YES;
605617
GCC_PREFIX_HEADER = "StudyplusSDKDemo/StudyplusSDKDemo-Prefix.pch";
606618
INFOPLIST_FILE = "StudyplusSDKDemo/StudyplusSDKDemo-Info.plist";
@@ -614,6 +626,7 @@
614626
isa = XCBuildConfiguration;
615627
buildSettings = {
616628
BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/StudyplusSDKDemo.app/StudyplusSDKDemo";
629+
DEVELOPMENT_TEAM = "";
617630
FRAMEWORK_SEARCH_PATHS = (
618631
"$(SDKROOT)/Developer/Library/Frameworks",
619632
"$(inherited)",
@@ -637,6 +650,7 @@
637650
isa = XCBuildConfiguration;
638651
buildSettings = {
639652
BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/StudyplusSDKDemo.app/StudyplusSDKDemo";
653+
DEVELOPMENT_TEAM = "";
640654
FRAMEWORK_SEARCH_PATHS = (
641655
"$(SDKROOT)/Developer/Library/Frameworks",
642656
"$(inherited)",

Podfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
platform :ios, '7.0'
1+
platform :ios, '8.0'
22

33
target :StudyplusSDK do
44
pod 'UICKeyChainStore', '1.0.4'

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Studyplus iOS SDK
55

66
## Requirements
77

8-
* iOS 7.0 or above
8+
* iOS 8.0 or above
99
* Xcode command line tools
1010
* ARC
1111
* [Studyplus iOS App 3.10.0 or adove](https://itunes.apple.com/jp/app/mian-qiangga-leshiku-xuku!/id505410049?mt=8)
@@ -21,7 +21,7 @@ Studyplus iOS SDK
2121

2222
```ruby
2323
# Edit your podfile
24-
platform :ios, '7.0'
24+
platform :ios, '8.0'
2525
pod 'StudyplusSDK'
2626
```
2727
and run
@@ -37,7 +37,7 @@ and run
3737
3. Install [AFNetworking](https://github.com/AFNetworking/AFNetworking) and [UICKeyChainStore](https://github.com/kishikawakatsumi/UICKeyChainStore) too.
3838
4. Add required frameworks(i.e. ```Security.framework, SystemConfiguration.framework, MobileCoreServices, CoreGraphics``` etc). See [AFNetworking](https://github.com/AFNetworking/AFNetworking) and [UICKeyChainStore](https://github.com/kishikawakatsumi/UICKeyChainStore).
3939

40-
#### By source copy (iOS 7 required)
40+
#### By source copy (iOS 8 required)
4141

4242
1. Get StudyplusSDK
4343
* ```git clone https://github.com/studyplus/Studyplus-iOS-SDK``` or download zip from [this page](https://github.com/studyplus/Studyplus-iOS-SDK/releases).
@@ -48,7 +48,7 @@ and run
4848

4949
### Set up custom URL scheme
5050

51-
set "studyplus-*{your consumer key}*" to URL Types.
51+
set "studyplus-*{your consumer key}*" to URL Types.
5252
(ex. studyplus-MIoh79q7pfMbTUVA3BNsSeTaZRcOK3yg )
5353

5454
![xcode](https://raw.github.com/studyplus/Studyplus-iOS-SDK/master/docs/set_url_scheme.png)
@@ -84,7 +84,7 @@ static SPLStudyplus *studyplus;
8484
}
8585
```
8686

87-
### Auth or Login
87+
### Auth or Login
8888
```Objective-C
8989
@implementation AppDelegate
9090

StudyplusSDK.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
Pod::Spec.new do |s|
22
s.name = "StudyplusSDK"
3-
s.version = "2.1.0"
3+
s.version = "3.0.0"
44
s.summary = "Studyplus iOS SDK"
55
s.description = <<-DESC
66
Let's post learning records to Studyplus(https://studyplus.jp)
77
DESC
88
s.homepage = "http://info.studyplus.jp"
99
s.license = { :type => 'MIT', :file => 'LICENSE.txt' }
1010
s.author = { "studyplus" => "[email protected]" }
11-
s.platform = :ios, '7.0'
11+
s.platform = :ios, '8.0'
1212
s.source = { :git => "https://github.com/studyplus/Studyplus-iOS-SDK.git", :tag => s.version.to_s }
1313
s.source_files = 'StudyplusSDK/**/*.{h,m}'
1414
s.public_header_files = 'StudyplusSDK/**/*.h'

StudyplusSDK.xcodeproj/project.pbxproj

Lines changed: 30 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -207,11 +207,11 @@
207207
isa = PBXNativeTarget;
208208
buildConfigurationList = 43E8E6991856CB780066D476 /* Build configuration list for PBXNativeTarget "StudyplusSDK" */;
209209
buildPhases = (
210-
813A4A7A17024E4CA022C118 /* 📦 Check Pods Manifest.lock */,
210+
813A4A7A17024E4CA022C118 /* [CP] Check Pods Manifest.lock */,
211211
43E8E6721856CB770066D476 /* Sources */,
212212
43E8E6731856CB770066D476 /* Frameworks */,
213213
43E8E6741856CB770066D476 /* CopyFiles */,
214-
62CDD57D8E864132B070C939 /* 📦 Copy Pods Resources */,
214+
62CDD57D8E864132B070C939 /* [CP] Copy Pods Resources */,
215215
);
216216
buildRules = (
217217
);
@@ -226,12 +226,12 @@
226226
isa = PBXNativeTarget;
227227
buildConfigurationList = 43E8E69C1856CB780066D476 /* Build configuration list for PBXNativeTarget "StudyplusSDKTests" */;
228228
buildPhases = (
229-
5C9B292132524996BCADD319 /* 📦 Check Pods Manifest.lock */,
229+
5C9B292132524996BCADD319 /* [CP] Check Pods Manifest.lock */,
230230
43E8E6821856CB770066D476 /* Sources */,
231231
43E8E6831856CB770066D476 /* Frameworks */,
232232
43E8E6841856CB770066D476 /* Resources */,
233-
6C6645884994437082EAF22F /* 📦 Copy Pods Resources */,
234-
A904EA54BC5E03808ECBD415 /* 📦 Embed Pods Frameworks */,
233+
6C6645884994437082EAF22F /* [CP] Copy Pods Resources */,
234+
A904EA54BC5E03808ECBD415 /* [CP] Embed Pods Frameworks */,
235235
);
236236
buildRules = (
237237
);
@@ -250,7 +250,7 @@
250250
isa = PBXProject;
251251
attributes = {
252252
CLASSPREFIX = SPL;
253-
LastUpgradeCheck = 0730;
253+
LastUpgradeCheck = 0820;
254254
ORGANIZATIONNAME = studyplus.jp;
255255
};
256256
buildConfigurationList = 43E8E6711856CB770066D476 /* Build configuration list for PBXProject "StudyplusSDK" */;
@@ -283,74 +283,74 @@
283283
/* End PBXResourcesBuildPhase section */
284284

285285
/* Begin PBXShellScriptBuildPhase section */
286-
5C9B292132524996BCADD319 /* 📦 Check Pods Manifest.lock */ = {
286+
5C9B292132524996BCADD319 /* [CP] Check Pods Manifest.lock */ = {
287287
isa = PBXShellScriptBuildPhase;
288288
buildActionMask = 2147483647;
289289
files = (
290290
);
291291
inputPaths = (
292292
);
293-
name = "📦 Check Pods Manifest.lock";
293+
name = "[CP] Check Pods Manifest.lock";
294294
outputPaths = (
295295
);
296296
runOnlyForDeploymentPostprocessing = 0;
297297
shellPath = /bin/sh;
298-
shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [[ $? != 0 ]] ; then\n cat << EOM\nerror: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\nEOM\n exit 1\nfi\n";
298+
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";
299299
showEnvVarsInLog = 0;
300300
};
301-
62CDD57D8E864132B070C939 /* 📦 Copy Pods Resources */ = {
301+
62CDD57D8E864132B070C939 /* [CP] Copy Pods Resources */ = {
302302
isa = PBXShellScriptBuildPhase;
303303
buildActionMask = 2147483647;
304304
files = (
305305
);
306306
inputPaths = (
307307
);
308-
name = "📦 Copy Pods Resources";
308+
name = "[CP] Copy Pods Resources";
309309
outputPaths = (
310310
);
311311
runOnlyForDeploymentPostprocessing = 0;
312312
shellPath = /bin/sh;
313313
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-StudyplusSDK/Pods-StudyplusSDK-resources.sh\"\n";
314314
showEnvVarsInLog = 0;
315315
};
316-
6C6645884994437082EAF22F /* 📦 Copy Pods Resources */ = {
316+
6C6645884994437082EAF22F /* [CP] Copy Pods Resources */ = {
317317
isa = PBXShellScriptBuildPhase;
318318
buildActionMask = 2147483647;
319319
files = (
320320
);
321321
inputPaths = (
322322
);
323-
name = "📦 Copy Pods Resources";
323+
name = "[CP] Copy Pods Resources";
324324
outputPaths = (
325325
);
326326
runOnlyForDeploymentPostprocessing = 0;
327327
shellPath = /bin/sh;
328328
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-StudyplusSDKTests/Pods-StudyplusSDKTests-resources.sh\"\n";
329329
showEnvVarsInLog = 0;
330330
};
331-
813A4A7A17024E4CA022C118 /* 📦 Check Pods Manifest.lock */ = {
331+
813A4A7A17024E4CA022C118 /* [CP] Check Pods Manifest.lock */ = {
332332
isa = PBXShellScriptBuildPhase;
333333
buildActionMask = 2147483647;
334334
files = (
335335
);
336336
inputPaths = (
337337
);
338-
name = "📦 Check Pods Manifest.lock";
338+
name = "[CP] Check Pods Manifest.lock";
339339
outputPaths = (
340340
);
341341
runOnlyForDeploymentPostprocessing = 0;
342342
shellPath = /bin/sh;
343-
shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [[ $? != 0 ]] ; then\n cat << EOM\nerror: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\nEOM\n exit 1\nfi\n";
343+
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";
344344
showEnvVarsInLog = 0;
345345
};
346-
A904EA54BC5E03808ECBD415 /* 📦 Embed Pods Frameworks */ = {
346+
A904EA54BC5E03808ECBD415 /* [CP] Embed Pods Frameworks */ = {
347347
isa = PBXShellScriptBuildPhase;
348348
buildActionMask = 2147483647;
349349
files = (
350350
);
351351
inputPaths = (
352352
);
353-
name = "📦 Embed Pods Frameworks";
353+
name = "[CP] Embed Pods Frameworks";
354354
outputPaths = (
355355
);
356356
runOnlyForDeploymentPostprocessing = 0;
@@ -418,13 +418,18 @@
418418
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
419419
CLANG_WARN_EMPTY_BODY = YES;
420420
CLANG_WARN_ENUM_CONVERSION = YES;
421+
CLANG_WARN_INFINITE_RECURSION = YES;
421422
CLANG_WARN_INT_CONVERSION = YES;
422423
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
424+
CLANG_WARN_SUSPICIOUS_MOVE = YES;
425+
CLANG_WARN_UNREACHABLE_CODE = YES;
423426
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
424427
COPY_PHASE_STRIP = NO;
428+
ENABLE_STRICT_OBJC_MSGSEND = YES;
425429
ENABLE_TESTABILITY = YES;
426430
GCC_C_LANGUAGE_STANDARD = gnu99;
427431
GCC_DYNAMIC_NO_PIC = NO;
432+
GCC_NO_COMMON_BLOCKS = YES;
428433
GCC_OPTIMIZATION_LEVEL = 0;
429434
GCC_PREPROCESSOR_DEFINITIONS = (
430435
"DEBUG=1",
@@ -440,7 +445,7 @@
440445
GCC_WARN_UNINITIALIZED_AUTOS = YES;
441446
GCC_WARN_UNUSED_FUNCTION = YES;
442447
GCC_WARN_UNUSED_VARIABLE = YES;
443-
IPHONEOS_DEPLOYMENT_TARGET = 7.0;
448+
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
444449
ONLY_ACTIVE_ARCH = YES;
445450
SDKROOT = iphoneos;
446451
VALID_ARCHS = "arm64 armv7 armv7s";
@@ -460,12 +465,17 @@
460465
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
461466
CLANG_WARN_EMPTY_BODY = YES;
462467
CLANG_WARN_ENUM_CONVERSION = YES;
468+
CLANG_WARN_INFINITE_RECURSION = YES;
463469
CLANG_WARN_INT_CONVERSION = YES;
464470
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
471+
CLANG_WARN_SUSPICIOUS_MOVE = YES;
472+
CLANG_WARN_UNREACHABLE_CODE = YES;
465473
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
466474
COPY_PHASE_STRIP = YES;
467475
ENABLE_NS_ASSERTIONS = NO;
476+
ENABLE_STRICT_OBJC_MSGSEND = YES;
468477
GCC_C_LANGUAGE_STANDARD = gnu99;
478+
GCC_NO_COMMON_BLOCKS = YES;
469479
GCC_TREAT_WARNINGS_AS_ERRORS = YES;
470480
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
471481
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
@@ -475,7 +485,7 @@
475485
GCC_WARN_UNINITIALIZED_AUTOS = YES;
476486
GCC_WARN_UNUSED_FUNCTION = YES;
477487
GCC_WARN_UNUSED_VARIABLE = YES;
478-
IPHONEOS_DEPLOYMENT_TARGET = 7.0;
488+
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
479489
SDKROOT = iphoneos;
480490
VALIDATE_PRODUCT = YES;
481491
VALID_ARCHS = "arm64 armv7 armv7s";

0 commit comments

Comments
 (0)