我使用迦太基并遇到了奇怪的问题。我的应用程序中有框架:
.controller('PizzaCtrl', ['$scope','$state','$ionicLoading', '$timeout'
function($scope, $state, $ionicLoading, $timeout) {
$scope.$emit('menu-refresh-request');
$scope.$on('menu-refresh-response', function(event) {
console.log("pizza");
$scope.$broadcast('scroll.refreshComplete');
$timeout(function(){
$scope.items = $scope.$parent.menu.pizze;
});
console.log($scope.items[1].price);
$ionicLoading.hide();
});
$scope.doRefresh = function() {
$scope.$emit('menu-refresh-request');
};
}])
但是当我尝试在模拟器中启动我的应用时,我收到了这个错误:
Mac-mini:Test test$ ls /Users/test/Library/Developer/CoreSimulator/Devices/C0CAD8E2-9371-47AE-855F-601FE289C585/data/Containers/Bundle/Application/1B18764D-EC63-4BF1-AC65-68ADDB714996/Test.app/Frameworks/
TestKit.framework
libswiftCore.dylib
libswiftCoreImage.dylib
libswiftDispatch.dylib
libswiftObjectiveC.dylib
libswiftContacts.dylib
libswiftCoreGraphics.dylib
libswiftDarwin.dylib
libswiftFoundation.dylib
libswiftUIKit.dylib
Mac-mini:Test test$ ls /Users/test/Library/Developer/CoreSimulator/Devices/C0CAD8E2-9371-47AE-855F-601FE289C585/data/Containers/Bundle/Application/1B18764D-EC63-4BF1-AC65-68ADDB714996/Test.app/Frameworks/TestKit.framework/
Headers
Info.plist
Modules
TestKit
_CodeSignature