Skip to content
This repository has been archived by the owner on Mar 4, 2022. It is now read-only.

Commit

Permalink
добавлена документация по использованию API в Xcode8 и ios10
Browse files Browse the repository at this point in the history
  • Loading branch information
AcidLynx committed Oct 24, 2016
1 parent daf2382 commit eb19bf0
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 4 deletions.
15 changes: 15 additions & 0 deletions CloudPaymentsAPIDemo.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@
BC01A3DB19BD912B007AD6DE /* UIRefreshControl+AFNetworking.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "UIRefreshControl+AFNetworking.m"; sourceTree = "<group>"; };
BC01A3DC19BD912B007AD6DE /* UIWebView+AFNetworking.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "UIWebView+AFNetworking.h"; sourceTree = "<group>"; };
BC01A3DD19BD912B007AD6DE /* UIWebView+AFNetworking.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "UIWebView+AFNetworking.m"; sourceTree = "<group>"; };
BC62D77C1DBE38AF0026B693 /* CloudPaymentsAPIDemo.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = CloudPaymentsAPIDemo.entitlements; sourceTree = "<group>"; };
BC63546619BBA0860086BADF /* CloudPaymentsAPIDemo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = CloudPaymentsAPIDemo.app; sourceTree = BUILT_PRODUCTS_DIR; };
BC63546919BBA0860086BADF /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
BC63546B19BBA0860086BADF /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };
Expand Down Expand Up @@ -236,6 +237,7 @@
BC63546719BBA0860086BADF /* Products */,
);
sourceTree = "<group>";
usesTabs = 1;
};
BC63546719BBA0860086BADF /* Products */ = {
isa = PBXGroup;
Expand All @@ -261,6 +263,7 @@
BC63546F19BBA0860086BADF /* CloudPaymentsAPIDemo */ = {
isa = PBXGroup;
children = (
BC62D77C1DBE38AF0026B693 /* CloudPaymentsAPIDemo.entitlements */,
BC01A2B519BD8E25007AD6DE /* Libraries */,
BC63547819BBA0860086BADF /* CPAppDelegate.h */,
BC63547919BBA0860086BADF /* CPAppDelegate.m */,
Expand Down Expand Up @@ -350,6 +353,14 @@
LastUpgradeCheck = 0510;
ORGANIZATIONNAME = "CloudPayments LLC";
TargetAttributes = {
BC63546519BBA0860086BADF = {
DevelopmentTeam = WCLAYYKMWP;
SystemCapabilities = {
com.apple.Keychain = {
enabled = 1;
};
};
};
BC63548619BBA0860086BADF = {
TestTargetID = BC63546519BBA0860086BADF;
};
Expand Down Expand Up @@ -548,7 +559,9 @@
ARCHS = "$(ARCHS_STANDARD)";
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
CODE_SIGN_ENTITLEMENTS = CloudPaymentsAPIDemo/CloudPaymentsAPIDemo.entitlements;
CODE_SIGN_IDENTITY = "iPhone Developer";
DEVELOPMENT_TEAM = WCLAYYKMWP;
ENABLE_BITCODE = NO;
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
Expand All @@ -572,7 +585,9 @@
ARCHS = "$(ARCHS_STANDARD)";
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
CODE_SIGN_ENTITLEMENTS = CloudPaymentsAPIDemo/CloudPaymentsAPIDemo.entitlements;
CODE_SIGN_IDENTITY = "iPhone Distribution";
DEVELOPMENT_TEAM = WCLAYYKMWP;
ENABLE_BITCODE = NO;
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
},
"DVTSourceControlWorkspaceBlueprintIdentifierKey" : "C8C9A504-2848-42F8-B39D-76E178BA2910",
"DVTSourceControlWorkspaceBlueprintWorkingCopyPathsKey" : {
"E3CA97A4D0A57AEDFA77BE925E24F5813E165E2C" : "CloudPayments_iOSSDKDemoCloudPaymentsAPIDemo\/Libraries\/AFNetworkingActivityLogger",
"43C695C7051868D2C70F1309FC396AD732E53DE1" : "CloudPayments_iOSSDKDemo",
"DD20A1A48C66B5213E0FEBB87A95EF51D6C6F3E8" : "CloudPayments_iOSSDKDemoCloudPaymentsAPIDemo\/Libraries\/AFNetworking",
"9E1ECC80773D1F4F22D03CB4DEA298B3CB57FAF5" : "CloudPayments_iOSSDKDemoCloudPaymentsAPIDemo\/Libraries\/SVProgressHUD"
"E3CA97A4D0A57AEDFA77BE925E24F5813E165E2C" : "CloudPayments_iOSSDKDemo\/CloudPaymentsAPIDemo\/Libraries\/AFNetworkingActivityLogger\/",
"43C695C7051868D2C70F1309FC396AD732E53DE1" : "CloudPayments_iOSSDKDemo\/",
"DD20A1A48C66B5213E0FEBB87A95EF51D6C6F3E8" : "CloudPayments_iOSSDKDemo\/CloudPaymentsAPIDemo\/Libraries\/AFNetworking\/",
"9E1ECC80773D1F4F22D03CB4DEA298B3CB57FAF5" : "CloudPayments_iOSSDKDemo\/CloudPaymentsAPIDemo\/Libraries\/SVProgressHUD\/"
},
"DVTSourceControlWorkspaceBlueprintNameKey" : "CloudPaymentsAPIDemo",
"DVTSourceControlWorkspaceBlueprintVersion" : 204,
Expand Down
10 changes: 10 additions & 0 deletions CloudPaymentsAPIDemo/CloudPaymentsAPIDemo.entitlements
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>keychain-access-groups</key>
<array>
<string>$(AppIdentifierPrefix)ru.cloudpayments.apidemo</string>
</array>
</dict>
</plist>
14 changes: 14 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,20 @@ CPService *_apiService = [[CPService alloc] init];
В симуляторе данная ошибка не возникает
## Использование с Xcode8 и ios10
* При тестировании на симуляторе ios10, возникает ошибка `EXC_BAD_ACCESS`. Она происходит по причине неправильной обработки загрузки ключей в симуляторе ios10.
См. тут [https://openradar.appspot.com/27422249](https://openradar.appspot.com/27422249) и [https://forums.developer.apple.com/message/179846](https://forums.developer.apple.com/message/179846)
Простое решение - для тестирования включить Keychain Sharing.
![Включение Keychain sharing](doc_images/enabling_keychain_sharing.png)
С включением этой опции приложение в симуляторе начинает работать корректно.
На реальных устройствах данная ошибка не возникает.
## Ключевые моменты
1. Библиотека поставляется в виде .framework, который скомпилирован для трех текущих архитектур процессора armv7, armv7s, arm64 и i385, x86_64. Таким образом тестировать можно в iPhone Simulator. Библиотека может работать только в версиях iOS 6.0+. iOS 8 также поддерживается.
2. В демо-проекте для сетевого взаимодействия используется библиотека AFNetworing (см. [https://github.com/AFNetworking/AFNetworking](https://github.com/AFNetworking/AFNetworking)). Все права на код этой библиотеки принадлежат авторам библиотеки.
Expand Down
Binary file added doc_images/enabling_keychain_sharing.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit eb19bf0

Please sign in to comment.