This page lists frequently asked questions about the mPaaS framework. Click a question to view the answer:
Error when upgrading RubyGems: ERROR: Failed to build gem native extension.
How to exit all micro applications and return to the launcher
How to restart application A with new parameters from application B when B is running on top of A
Blank screen when opening a XIB-based view controller that inherits from DTViewController
Error when upgrading RubyGems: ERROR: Failed to build gem native extension.
Answer: If the error ERROR: Failed to build gem native extension. occurs during a RubyGems upgrade, install the Xcode command-line tools and then try again.
xcode-select --installError when installing RVM: Library not loaded
Answer: If the error For dyld: Library not loaded: /usr/local/lib/libgmp.10.dylib occurs when installing Ruby 2.2.4 with RVM, run the following command and then try again.
brew update && brew install gmpError when installing RVM: lazy symbol binding failed
Answer: If the error dyld: lazy symbol binding failed: Symbol not found: _clock_gettime occurs when installing Ruby 2.2.4 with RVM, install the Xcode command-line tools and then try again.
xcode-select --installHow to use a custom UIApplication delegate class
Answer: Override DFClientDelegate in the `main` method with your custom class.
How to exit all micro applications and return to the launcher
Answer:
[DTContextGet() startApplication:@"Launcher's app ID" params:nil animated:kDTMicroApplicationLaunchModePushNoAnimation];How can application B restart application A with new parameters when B is running on top of A
Answer: If application B is running on top of application A, restarting application A closes application B and all other applications layered above A.
[DTContextGet() startApplication:@"A's name" params:@{@"arg": @"something"} launchMode:kDTMicroApplicationLaunchModePushWithAnimation];At the same time, the DTMicroApplicationDelegate of application A receives the following event. The options dictionary contains the passed parameters.
- (void)application:(DTMicroApplication *)application willResumeWithOptions:(NSDictionary *)options
{
}Blank screen when opening a XIB-based view controller that inherits from DTViewController
Answer: Rewrite the loadView method in the DTViewControllercategory. The following code provides an example:
@interface DTViewController (NibSupport)
@end
@implementation DTViewController (NibSupport)
- (void)loadView
{
[super loadView];
}
@end