首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Ionic Cordova不会模拟iOS -找不到用于挂钩的脚本

Ionic Cordova不会模拟iOS -找不到用于挂钩的脚本
EN

Stack Overflow用户
提问于 2018-10-04 22:44:18
回答 1查看 1.7K关注 0票数 2

我正在尝试建立一个使用离子的iOS应用程序。我使用了Ionic 1和Ionic 3,两个都得到了相同的错误。当我尝试运行ionic cordova emulate ios --verbose时,我得到以下错误:

代码语言:javascript
复制
Updating Storyboard image set contents.json
This app does not have additional resource files defined
Prepared iOS project successfully
No scripts found for hook "after_prepare".
Building for iPhone XS Max Simulator
Building project: /Users/Jackson/Desktop/Capstone/research_app/todo/platforms/ios/todo.xcworkspace
    Configuration: Debug
    Platform: emulator
Build settings from command line:
    CONFIGURATION_BUILD_DIR = /Users/Jackson/Desktop/Capstone/research_app/todo/platforms/ios/build/emulator
    SDKROOT = iphonesimulator12.0
    SHARED_PRECOMPS_DIR = /Users/Jackson/Desktop/Capstone/research_app/todo/platforms/ios/build/sharedpch

Build settings from configuration file '/Users/Jackson/Desktop/Capstone/research_app/todo/platforms/ios/cordova/build-debug.xcconfig':
    CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES = YES
    CODE_SIGN_ENTITLEMENTS = $(PROJECT_DIR)/$(PROJECT_NAME)/Entitlements-$(CONFIGURATION).plist
    CODE_SIGN_IDENTITY = iPhone Developer
    ENABLE_BITCODE = NO
    GCC_PREPROCESSOR_DEFINITIONS = DEBUG=1
    HEADER_SEARCH_PATHS = "$(TARGET_BUILD_DIR)/usr/local/lib/include" "$(OBJROOT)/UninstalledProducts/include" "$(OBJROOT)/UninstalledProducts/$(PLATFORM_NAME)/include" "$(BUILT_PRODUCTS_DIR)"
    OTHER_LDFLAGS = -ObjC
    SWIFT_OBJC_BRIDGING_HEADER = $(PROJECT_DIR)/$(PROJECT_NAME)/Bridging-Header.h

No scripts found for hook "before_deploy".
No target specified for emulator. Deploying to iPhone-XS-Max, 12.0 simulator
/Users/Jackson/Desktop/Capstone/research_app/todo/platforms/ios/build/emulator/todo.app/Info.plist file not found.
[ERROR] An error occurred while running subprocess cordova.

        cordova emulate ios --verbose exited with exit code 1.

        Re-running this command with the --verbose flag may provide more information.
  ionic:cli-framework:utils:process onBeforeExit handler: process.exit received +0ms
  ionic:cli-framework:utils:process onBeforeExit handler: running 2 functions +0ms
  ionic:cli-framework:utils:process onBeforeExit handler: exiting (exit code 1) +40ms
EN

回答 1

Stack Overflow用户

发布于 2018-10-04 23:31:24

代码语言:javascript
复制
No scripts found for hook "after_prepare".

这不是一条错误消息,而是一条日志消息:

实际的错误消息是:

/Users/Jackson/Desktop/Capstone/research_app/todo/platforms/ios/build/emulator/todo.app/Info.plist file not found.

但这有误导性。实际问题是,cordova-ios@4目前与默认使用的Xcode10中的新构建系统不兼容。

有关解决方案,请参阅this answer

票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/52649563

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档