离子cordova构建ios –emulator不显示失败或成功构建

离子cordova构建ios –emulator不显示失败或成功构建,第1张

概述我刚刚将我的 Xcode更新到版本10.0(10A255),它在我的macBook上也是控制台.之后我使用了命令 sudo ionic cordova build ios --emulator --prod 然后它开始正常构建,但构建似乎永远不会结束,因为这个过程永远不会返回“构建失败”或“构建成功”.它显然突然结束,这是终端的输出: Running app-scripts build: --pr 我刚刚将我的 Xcode更新到版本10.0(10A255),它在我的macBook上也是控制台.之后我使用了命令

sudo ionic cordova build ios --emulator --prod

然后它开始正常构建,但构建似乎永远不会结束,因为这个过程永远不会返回“构建失败”或“构建成功”.它显然突然结束,这是终端的输出:

Running app-scripts build: --prod --platform ios --target cordova[16:09:56]  build prod started ... [16:09:56]  clean started ... [16:09:56]  clean finished in 3 ms [16:09:56]  copy started ... [16:09:57]  deeplinks started ... [16:09:58]  deeplinks finished in 1.52 s [16:09:58]  ngc started ... [16:10:27]  ngc finished in 28.76 s [16:10:27]  preprocess started ... [16:10:27]  preprocess finished in less than 1 ms [16:10:27]  webpack started ... [16:10:27]  copy finished in 31.56 s [16:14:50]  webpack finished in 263.50 s [16:14:50]  uglify started ... [16:14:50]  sass started ... Without `from` option PostCSS Could generate wrong source map and will not find browsersList config. Set it to CSS file path or to `undefined` to prevent this warning.[16:14:53]  sass finished in 2.58 s [16:14:53]  cleanCSS started ... [16:14:57]  cleanCSS finished in 3.72 s [16:15:51]  uglify finished in 60.77 s [16:15:51]  postprocess started ... [16:15:51]  postprocess finished in 190 ms [16:15:51]  lint started ... [16:15:51]  build prod finished in 355.49 s > cordova build ios --emulatorBuilding for iPhone XS Max SimulatorBuilding project: /Users/usuariomac/WebServer/AppIonicOMT/platforms/ios/OpenMyTab.xcworkspaceConfiguration: DeBUGPlatform: emulatorBuild settings from command line:    CONfigURATION_BUILD_DIR = /Users/usuariomac/WebServer/AppIonicOMT/platforms/ios/build/emulator    SDKROOT = iphonesimulator12.0    SHARED_PRECOMPS_DIR = /Users/usuariomac/WebServer/AppIonicOMT/platforms/ios/build/sharedpchBuild settings from configuration file '/Users/usuariomac/WebServer/AppIonicOMT/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[16:16:41]  lint finished in 49.36 s

在此之前我的项目正在建设中.
我尝试使用该命令将目标更改为以前的iOS版本

离子cordova构建ios –emulator –target“iPhone-X,11.0”–prod

但它不起作用.在这个问题上最奇怪的事情是,如果我从Xcode构建应用程序,它“显然”采取我在appp中所做的更改.所以,这是我的离子信息:

cli包:(/usr/local/lib / node_modules)

@ionic/cli-utils  : 1.19.2ionic (Ionic Cli) : 3.20.0

全球套餐:

cordova (Cordova Cli) : 8.0.0

本地包裹:

@ionic/app-scripts : 3.1.11Cordova Platforms  : androID 6.3.0 ios 4.5.5Ionic Framework    : ionic-angular 3.9.2

系统:

AndroID SDK Tools : 26.1.1ios-deploy        : 1.9.2 ios-sim           : 5.0.13 Node              : v8.6.0npm               : 6.4.1 OS                : macOS High SIErraXcode             : Xcode 10.0 Build version 10A255

环境变量:

ANDROID_HOME : /Users/usuariomac/library/AndroID/sdk

其他:

backend : pro

对于发生了什么的任何想法?
提前致谢!

解决方法 我试过了

ionic cordova build ios — –buildFlag=”-UseModernBuildSystem=0″

并且它可以工作,但是在生成.ipa文件之后……这个文件无法安装在设备上,给我下一个Xcode的d出窗口

the enTitlements specifIEd in your application’s code signing enTitlements file are invalID,not permitted,or do not match those specifIEd in your provisioning profile. (0xe8008016).

所以我找到了this发布并尝试了XCode中的下一个配置.

Go to Xcode and open the project generated then navigate -> file -> Workspace Settings -> Build System and select “Legacy Build System”

然后我再次尝试没有构建标志的构建命令,并像以前一样工作.

希望能帮助到你!

总结

以上是内存溢出为你收集整理的离子cordova构建ios –emulator不显示失败或成功构建全部内容,希望文章能够帮你解决离子cordova构建ios –emulator不显示失败或成功构建所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/1001970.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-22
下一篇 2022-05-22

发表评论

登录后才能评论

评论列表(0条)

保存