Importing Paypal SDK sample app into my existing project - ios

I'm having problems to import Paypal SDK sample app into my existing project.
I added Paypal .xcodeproject into my existing project (now i have all the frameworks, etc)
Compile = OK.
The Paypal SDK Sample has a Storyboard with 2 Views and i want to connect them into my existing project, for this i added a Button and created a segue to those views. Then I updated my views class with the module Paypal that it successfully recognized, but it did not work and give me 3 errors: (I already tried to fix them, delete the segue and link again, I have searched for the errors on stackoverflow, etc.. no success)
1- *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UIViewController 0x7f8bd2f98870> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key successView.'
2- Could not load the "check.png" image referenced from a nib in the bundle with identifier "ru.test.SwiftSideMenu"
3- Unknown class _TtC25PayPal_iOS_SDK_Sample_App18MainViewController in Interface Builder file.
I think this problem is a little complex to paste code here, so i will leave the download links to be easier to check:
https://mega.nz/#!4BZ0UZZS!cRfcXl5jvem8v-_Cs7q0jpEFLGtqUA2RKVQ2ADnEjXU

Related

AWS Mobile Hub - How to Implement User Sign In Without Storyboard

I am currently working on a project that does not include storyboards and I am trying to create a user authentication and sign-in method. I was initially going to use FireBase but they did not have Carthage support so I decided to try out AWS. I initially tried using AWSCognitoIdentityProvider framework with my custom UI but the passwordauthentication method for signing in would not trigger a result. I moved onto the AWSAuthUI framework (plus AWSAuthCore, AWSFacebookSignIn, AWSGoogleSignIn, AWSUserPoolsSignIn) with the built in UI but I keep getting the error below before even getting to the login screen.
" Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Could not find a storyboard named 'SignIn' in bundle NSBundle "
From all the documentation and demo applications that I've seen, I guess this is not possible without using storyboards? Can someone please confirm this.
You will need to add the Storyboard files in the Build Phases if you are using Carthage: See an example here: https://github.com/aws/aws-sdk-ios/pull/733/files. Currently the AuthUI implements the UI components in a storyboard file.

Code Compliance with Objective-C view controller

I am trying to implement the CAS login objective-C code to my current Xcode project but I keep having code compilation errors everytime I try to get the text from one of my IBOutlets the error comes up. Here is the code for the CAS View Controller:
CASViewController.m - Look at the username and password strings that's where the problem is
CASViewController.h - the username and passwords swift IBOutlets are hat connect the storyboard to code and which are causing the problem
I am new to swift so I've been looking around to get this working. I have made the CAS client a static linked library and I have made a bridging file to connect the code however I am still at a loss. Thank you in advance for the help.
the error I am getting:
error is:2017-07-03 12:31:22.520 SAF[2947:45298] Unknown class _TtC11CAS library17CASViewController in Interface Builder file. 2017-07-03 12:31:22.530 SAF[2947:45298] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[ setValue:forUndefinedKey:]:
UILabel IBOutlets are missing the required connection. You need to connect them to the labels in Storyboard's UIViewController.
Specifically, UILabel authResultMessage isn't connected to Storyboard. Use Ctrl+drag to connect it with relevant label in Storyboard.

How to add momd(managed object model) into ios framework?

I am trying to convert my ios app(XYZ) into framework(XYZ.framework) so that it can be included in other ios applications. Went through below links and able to develop a framework.
LINK1:LINK1
LINK2:LINK2
But when i include my framework in other apps and try to compile for first time , xcode is throwing error "Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'executeFetchRequest:error: A fetch request must have an entity.". I followed below steps and get rid of this error.
STEP1: Added XYZ.framework in other app and compiled for first time, but xcode gave error mentioned above.
STEP2: Added XYZ.momd(by drag and drop) along with XYZ.framework in other application. Compiled it and Xcode didn't throw any error.
STEP3: Removed XYZ.momd from other application and compiled it. Xcode didn't throw any error!!!!
Should i give XYZ.momd along with XYZ.framework while distributing XYZ.framework, so that XYZ.momd can be included in other applications? I googled, but didn't get how to add momd inside framework and include it in other applications.

Scringo framework app crashes in ios?

I'm Facing very strange problem, my ios app crashes on my devices and simulatore, i
developed app on one mac and system and move source code to another mac, on new mac
my scringo framework showing different types of crash reports like "Terminating app due to
uncaught exception 'NSUnknownKeyException', reason: '[
setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key
closeButton.'".
I done a lot of googled, but i didn't get any solution. i contacted to scringo help
support also, didn't get any response on http://www.scringo.com/about.php
The most likely source of this error is that something has a connection to an action or outlet called done that doesn't exist in the code for that class.

App can't start after I deleted localization and renamed uibutton

I made simple app with 2 languages. When it was done I've decided to delete one language (and did so): I deleted language from project-info-localizations.
After that I've tested app on the device (iPhone) and found that app still has additional (deleted) language. Then I've deleted the app from the iPhone and run project again - it had no sense to my changes. I don't understand the reason... However, later I've found mistake (grammar) in the name of the button and renamed it. That action completely killed my app - it can't be run on the iPhone from that very moment.
Error is: 2013-01-25 11:46:34.087 timeLimiter[13649:907] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[ setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key startAlerButton.'
It mentions "startAlerButton" which was renamed (I've checked all relations in .h, .m, storyboad).
Please check if there is still some connection to outlet startAlerButton in the xib files.

Resources