This project base on iOS objective-C codegen project
The iOS CodeGen command line tool generates iOS client side LoopBack Model representations in Swift by looking into the specified server application.
The following is an example usage applied to the test server provided under this directory:
- Run
npm install
in this directory to initialize the toolbin/lb-ios
and the test server undertest-env/server
.
- Run
bin/lb-ios -p XX -s SS test-env/server/server test-env/client/ios/CodeGenTest/gen-src
to generate the models in Objective-C representation, whereXX
is the prefix andSS
is the postfix attached to all the generated class names.
After performing the above steps, run the followings:
node test-env/server/server.js
cd test-env/client/ios/CodeGenTest
pod install
open CodeGenTest.xcworkspace
- Run the CodeGenTestTests unit tests.
- Currently properties and simple method generation are supported. See the generated headers for details.