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.
If the error ERROR: Failed to build gem native extension.
occurs when you upgrade RubyGems, install the Xcode command line tool and try again.
xcode-select --install
The error Library not loaded
occurred when I installed the RVM.
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.
brew update && brew install gmp
The error Lazy symbol binding failed
occurred when I installed the RVM.
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.
xcode-select --install
How to use my UIApplication delegate class?
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?
[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?
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.
[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
.
- (void)application:(DTMicroApplication *)application willResumeWithOptions:(NSDictionary *)options
{
}
After the base class is inherited from DTViewController, the VC created using the XIB shows a white screen after it is opened.
Rewrite the loadView
method in category of DTViewController
, as shown in the following code.
@interface DTViewController (NibSupport)
@end
@implementation DTViewController (NibSupport)
- (void)loadView
{
[super loadView];
}
@end