All Products
Search
Document Center

FAQ of mPaaS framework

Last Updated: Mar 10, 2021

View the list of common questions about the mPaaS framework and click a question to view its answer.

When upgrading RubyGems, I saw the error message “ERROR: Failed to build gem native extension.d”.

A: If you see the error message ERROR: Failed to build gem native extension. when upgrading RubyGems, install the Xcode command line tool and then try again.

  1. xcode-select --install

When installing RVM, I saw the error message “Library not loaded”.

A: If you see the error message For dyld: Library not loaded: /usr/local/lib/libgmp.10.dylib when installing Ruby 2.2.4 with RVM, run the following command and then try again.

  1. brew update && brew install gmp

When installing RVM, I saw the error message “lazy symbol binding failed”.

A: If you see the error message dyld: lazy symbol binding failed: Symbol not found: _clock_gettime when installing Ruby 2.2.4 with RVM, install the Xcode command line tool and then try again.

  1. xcode-select --install

How to use my own UIApplication delegate class?

A: If you do not use the mPaaS framework, you can directly use your own class to overwrite DFClientDelegate in the main method.

How to exit all micro applications and return to the Launcher?

A:

  1. [DTContextGet() startApplication:@"appid of Launcher" params:nil animated:kDTMicroApplicationLaunchModePushNoAnimation];

If Application B is on top of the current Application A, how can Application B restart Application A and pass arguments?

A:Suppose Application A has started, and Application B on top of it has also started. In this case, if Application A is restarted, Application B (and all applications on top of Application A) will exit.

  1. [DTContextGet() startApplication:@"name of A" params:@{@"arg": @"something"} launchMode:kDTMicroApplicationLaunchModePushWithAnimation];

Meanwhile, DTMicroApplicationDelegate of Application A will receive the following event, with arguments carried by options.

  1. - (void)application:(DTMicroApplication *)application willResumeWithOptions:(NSDictionary *)options
  2. {
  3. }

After a base class inherits from DTViewController, the VC created using the xib method is all blank when it is opened.

A: Please overwrite the loadView</> method in </>DTViewController category</> of </>DTViewController category</>. The code sample is as follows:

  1. @interface DTViewController (NibSupport)
  2. @end
  3. @implementation DTViewController (NibSupport)
  4. - (void)loadView
  5. {
  6. [super loadView];
  7. }
  8. @end