This API SDK was automatically generated by APIMATIC v2.0
Note: Only works with Cocoapods version 0.38.2 or later. Due to recent breaking changes, you must upgrade to the latest pod version. You can find the change log link below.
How To Configure:
The generated code reads configuration values from the App-Info.plist file. The App-Info.plist dictionary must contain the following configuration entries.
How to build and use via CocoaPods:
CocoaPods is a popular dependency manager for Swift and Objective-C Cocoa projects. The following instructions help you integrate with an existing CocoaPods project.
1. Create a folder named MagicTelecomAPI in /path/to/your/project/Vendor/ 2. Extract the contents of the SDK in to the folder named MagicTelecomAPI 3. Add the following line to your PodFile : pod 'MagicTelecomAPI', :path => 'Vendor/MagicTelecomAPI' 4. Execute 'pod install' from terminal to install the dependency in to your project.
For more information, please refer to http://CocoaPods.org on how to use CocoaPods to manage dependency for the project.
How to build via static framework:
The generated code uses two Cocoa Pods namely, JSONModel and UniRest. Reference to these two is already set in the PodFile, all you need to do is the following.
1. Open terminal and goto the unarchived directory. 2. Run command "pod install" without the quotes. 3. A new file named "MagicTelecomAPI.xcworkspace" will be created as a result. 4. Open the "MagicTelecomAPI.xcworkspace" in XCode 5.0. 5. Change the build target: Product -> Schema and select "Framework" 6. Invoke build command. By default the generated framework is copied to your desktop.
How to use the static framework:
The build process generates a static library, which can be used just like an ordinary static library. See the following link for more information on this topic.
Note: You may need to add the '-all_load' flag (under Build Settings > Linking > Other Linker Flags) in your app project that uses this framework.