All Products
Search
Document Center

FAQ of mPaaS framework

Last Updated: Apr 16, 2021

This section describes the mPaaS framework FAQ. Click a question to view its answer.

The error “ERROR: Failed to build gem native extension.d” occurred when I upgraded RubyGems.

Answer: If the error ERROR: Failed to build gem native extension. occurs when you upgrade RubyGems, install the Xcode command line tool and try again.

 
  1. xcode-select --install

The error “Library not loaded” occurred when I installed the RVM.

Answer: If the error For dyld: Library not loaded: /usr/local/lib/libgmp.10.dylib occurred when you install Ruby 2.2.4 using the RVM, run the following command and try again.

 
  1. brew update && brew install gmp

The error “Lazy symbol binding failed” occurred when I installed the RVM.

Answer: If the error dyld: lazy symbol binding failed: Symbol not found: _clock_gettime occurs when you install Ruby 2.2.4 using the RVM, install the Xcode command line tool and try again.

 
  1. xcode-select --install

How to use my UIApplication delegate class?

Answer: If you do not use the mPaaS framework, you can override DFClientDelegate in the main method with your own class.

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

Answer:

 
  1. [DTContextGet() startApplication:@"app ID of the launcher" params:nil animated:kDTMicroApplicationLaunchModePushNoAnimation];

If Application B exists on top of Application A, how can Application B restart Application A and pass arguments?

Answer:Suppose Application A is started, and Application B on its top is also started. In this case, when 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 in options.

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

After the base class is inherited from DTViewController, the VC created using the XIB shows a white screen after it is opened.

Answer: Rewrite the loadView method in DTViewController category of DTViewController category. The following code shows an example.

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