All Products
Search
Document Center

Mobile Platform as a Service:FAQ of mPaaS framework

Last Updated:Mar 08, 2022

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

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.

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.

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.

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:

[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.

[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.

- (void)application:(DTMicroApplication *)application willResumeWithOptions:(NSDictionary *)options
{
}

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:

@interface DTViewController (NibSupport)
@end

@implementation DTViewController (NibSupport)

- (void)loadView
{
    [super loadView];
}

@end