Issue with Creating Card Connect SDK Xamarin binding Library for iOS
I created a Xamarin Binding Library project to map the card connect sdk for ios and was successful in it. But when I try to create a sample project to test the function its giving me the following error.
Could not create an native instance of the type 'CardConnect.CCCPaymentRequest': the native class hasn't been loaded. It is possible to ignore this condition by setting ObjCRuntime.Class.ThrowOnInitFailure to false.
You can find the Objective C & Swift sample and documentation in the
link below https://developer.cardconnect.com/mobile-sdks#iOS
I've shared the binding library project and the necessary SDK framework in Github
ios xamarin binding
add a comment |
I created a Xamarin Binding Library project to map the card connect sdk for ios and was successful in it. But when I try to create a sample project to test the function its giving me the following error.
Could not create an native instance of the type 'CardConnect.CCCPaymentRequest': the native class hasn't been loaded. It is possible to ignore this condition by setting ObjCRuntime.Class.ThrowOnInitFailure to false.
You can find the Objective C & Swift sample and documentation in the
link below https://developer.cardconnect.com/mobile-sdks#iOS
I've shared the binding library project and the necessary SDK framework in Github
ios xamarin binding
This suggests the native library in question has not been loaded.You can refer this documentation:developer.xamarin.com/guides/ios/advanced_topics/native_interop
– Lucas Zhang - MSFT
Jan 3 at 1:36
@LucasZhang-MSFT I am trying to bind an Objective C framework library, the link talks about static library.
– Anand
Jan 3 at 7:04
add a comment |
I created a Xamarin Binding Library project to map the card connect sdk for ios and was successful in it. But when I try to create a sample project to test the function its giving me the following error.
Could not create an native instance of the type 'CardConnect.CCCPaymentRequest': the native class hasn't been loaded. It is possible to ignore this condition by setting ObjCRuntime.Class.ThrowOnInitFailure to false.
You can find the Objective C & Swift sample and documentation in the
link below https://developer.cardconnect.com/mobile-sdks#iOS
I've shared the binding library project and the necessary SDK framework in Github
ios xamarin binding
I created a Xamarin Binding Library project to map the card connect sdk for ios and was successful in it. But when I try to create a sample project to test the function its giving me the following error.
Could not create an native instance of the type 'CardConnect.CCCPaymentRequest': the native class hasn't been loaded. It is possible to ignore this condition by setting ObjCRuntime.Class.ThrowOnInitFailure to false.
You can find the Objective C & Swift sample and documentation in the
link below https://developer.cardconnect.com/mobile-sdks#iOS
I've shared the binding library project and the necessary SDK framework in Github
ios xamarin binding
ios xamarin binding
edited Jan 8 at 9:54
Anand
asked Jan 2 at 13:37
AnandAnand
30938
30938
This suggests the native library in question has not been loaded.You can refer this documentation:developer.xamarin.com/guides/ios/advanced_topics/native_interop
– Lucas Zhang - MSFT
Jan 3 at 1:36
@LucasZhang-MSFT I am trying to bind an Objective C framework library, the link talks about static library.
– Anand
Jan 3 at 7:04
add a comment |
This suggests the native library in question has not been loaded.You can refer this documentation:developer.xamarin.com/guides/ios/advanced_topics/native_interop
– Lucas Zhang - MSFT
Jan 3 at 1:36
@LucasZhang-MSFT I am trying to bind an Objective C framework library, the link talks about static library.
– Anand
Jan 3 at 7:04
This suggests the native library in question has not been loaded.You can refer this documentation:developer.xamarin.com/guides/ios/advanced_topics/native_interop
– Lucas Zhang - MSFT
Jan 3 at 1:36
This suggests the native library in question has not been loaded.You can refer this documentation:developer.xamarin.com/guides/ios/advanced_topics/native_interop
– Lucas Zhang - MSFT
Jan 3 at 1:36
@LucasZhang-MSFT I am trying to bind an Objective C framework library, the link talks about static library.
– Anand
Jan 3 at 7:04
@LucasZhang-MSFT I am trying to bind an Objective C framework library, the link talks about static library.
– Anand
Jan 3 at 7:04
add a comment |
1 Answer
1
active
oldest
votes
I am posting the solution I got after multiple communications with card connect team and microsoft support team.
The working solution is updated in Github: Card Connect SDK Binding
There are couple of points to be noted while anyone is going to utilize this,
Specifying the properties of the native library, you need to set the
below items
Force Load : selected
Linker flags: -lxml2
Smart Link : selected
Setting the Additional mtouch flag where you use it, follow the below steps,
=> choose “options” at the bottom
=> find “iOS Build”
=> find a text input box called “Additional mtouch arguments”, then add the follow script “--optimize=-remove-dynamic-registrar”
Adding the merchant id in the Entitements.plist where you use the card connect library.
Note: You can test the sample using apple pay sandbox account for that you need an apple developer account & apple itunes/appstoreconnect account, with that you need to create the certificate mentioning the apple pay capability and create a provisioning profile with that certificate and
the devices you intend to test. Then sign your test application with the provisioning profile and load it in your iOS device either via Diawi.com or any other testing service. You should be good to verify your solution.
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54007376%2fissue-with-creating-card-connect-sdk-xamarin-binding-library-for-ios%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
I am posting the solution I got after multiple communications with card connect team and microsoft support team.
The working solution is updated in Github: Card Connect SDK Binding
There are couple of points to be noted while anyone is going to utilize this,
Specifying the properties of the native library, you need to set the
below items
Force Load : selected
Linker flags: -lxml2
Smart Link : selected
Setting the Additional mtouch flag where you use it, follow the below steps,
=> choose “options” at the bottom
=> find “iOS Build”
=> find a text input box called “Additional mtouch arguments”, then add the follow script “--optimize=-remove-dynamic-registrar”
Adding the merchant id in the Entitements.plist where you use the card connect library.
Note: You can test the sample using apple pay sandbox account for that you need an apple developer account & apple itunes/appstoreconnect account, with that you need to create the certificate mentioning the apple pay capability and create a provisioning profile with that certificate and
the devices you intend to test. Then sign your test application with the provisioning profile and load it in your iOS device either via Diawi.com or any other testing service. You should be good to verify your solution.
add a comment |
I am posting the solution I got after multiple communications with card connect team and microsoft support team.
The working solution is updated in Github: Card Connect SDK Binding
There are couple of points to be noted while anyone is going to utilize this,
Specifying the properties of the native library, you need to set the
below items
Force Load : selected
Linker flags: -lxml2
Smart Link : selected
Setting the Additional mtouch flag where you use it, follow the below steps,
=> choose “options” at the bottom
=> find “iOS Build”
=> find a text input box called “Additional mtouch arguments”, then add the follow script “--optimize=-remove-dynamic-registrar”
Adding the merchant id in the Entitements.plist where you use the card connect library.
Note: You can test the sample using apple pay sandbox account for that you need an apple developer account & apple itunes/appstoreconnect account, with that you need to create the certificate mentioning the apple pay capability and create a provisioning profile with that certificate and
the devices you intend to test. Then sign your test application with the provisioning profile and load it in your iOS device either via Diawi.com or any other testing service. You should be good to verify your solution.
add a comment |
I am posting the solution I got after multiple communications with card connect team and microsoft support team.
The working solution is updated in Github: Card Connect SDK Binding
There are couple of points to be noted while anyone is going to utilize this,
Specifying the properties of the native library, you need to set the
below items
Force Load : selected
Linker flags: -lxml2
Smart Link : selected
Setting the Additional mtouch flag where you use it, follow the below steps,
=> choose “options” at the bottom
=> find “iOS Build”
=> find a text input box called “Additional mtouch arguments”, then add the follow script “--optimize=-remove-dynamic-registrar”
Adding the merchant id in the Entitements.plist where you use the card connect library.
Note: You can test the sample using apple pay sandbox account for that you need an apple developer account & apple itunes/appstoreconnect account, with that you need to create the certificate mentioning the apple pay capability and create a provisioning profile with that certificate and
the devices you intend to test. Then sign your test application with the provisioning profile and load it in your iOS device either via Diawi.com or any other testing service. You should be good to verify your solution.
I am posting the solution I got after multiple communications with card connect team and microsoft support team.
The working solution is updated in Github: Card Connect SDK Binding
There are couple of points to be noted while anyone is going to utilize this,
Specifying the properties of the native library, you need to set the
below items
Force Load : selected
Linker flags: -lxml2
Smart Link : selected
Setting the Additional mtouch flag where you use it, follow the below steps,
=> choose “options” at the bottom
=> find “iOS Build”
=> find a text input box called “Additional mtouch arguments”, then add the follow script “--optimize=-remove-dynamic-registrar”
Adding the merchant id in the Entitements.plist where you use the card connect library.
Note: You can test the sample using apple pay sandbox account for that you need an apple developer account & apple itunes/appstoreconnect account, with that you need to create the certificate mentioning the apple pay capability and create a provisioning profile with that certificate and
the devices you intend to test. Then sign your test application with the provisioning profile and load it in your iOS device either via Diawi.com or any other testing service. You should be good to verify your solution.
edited Feb 28 at 7:14
answered Feb 28 at 7:05
AnandAnand
30938
30938
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54007376%2fissue-with-creating-card-connect-sdk-xamarin-binding-library-for-ios%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
This suggests the native library in question has not been loaded.You can refer this documentation:developer.xamarin.com/guides/ios/advanced_topics/native_interop
– Lucas Zhang - MSFT
Jan 3 at 1:36
@LucasZhang-MSFT I am trying to bind an Objective C framework library, the link talks about static library.
– Anand
Jan 3 at 7:04