0 Replies Latest reply on Apr 16, 2018 4:18 AM by andreashof

    Error when building ios 11

    andreashof Level 1

      Hello

       

      I cannot build my hybrid mobile app to ios 11, while ios 10 and android works fine. I know that ios 11 only allows 64 bit applications, but i cannot see what i am missing to only build the app as a 64 bit application.

      I removed all plugins from my app but could still not build ios 11.

      The error log from the failed build says "warning: iOS 11.0.0 does not support armv7", so I would assume that the app is trying to build as an 32 bit application?

       

      The error I get at the bottom of the error log says:

      Error code 65 for command: xcodebuild with args: -xcconfig,/private/project/cordova/build-release.xcconfig,-workspace,direct.xcworkspace,- scheme,direct,-configuration,Release,-destination,generic/platform=iOS,-archivePath,direct .xcarchive,archive,CONFIGURATION_BUILD_DIR=/private/project/build/device,SHARED_PRECOMPS_D IR=/private/project/build/sharedpch

       

       

       

      The error log also reports about 32 bit application here:

      ProcessPCH /private/project/build/sharedpch/CordovaLib_Prefix-gbgqwnvnltsypwfwporajmqnqspl/CordovaLi b_Prefix.pch.pch CordovaLib_Prefix.pch normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler

        cd /project/CordovaLib

        export LANG=en_US.US-ASCII

        /Applications/Xcode92.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ clang -x objective-c-header -arch armv7 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=c99 -fobjc-arc -fmodules -fmodules-cache-path=/Library/Developer/Xcode/DerivedData/ModuleCache -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/Library/Developer/Xcode/DerivedData/ModuleCache/Session.modulevalid ation -fmodules-validate-once-per-build-session -Wno-trigraphs -fpascal-strings -Os -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-implicit-atomic-properties -Wno-arc-repeated-use-of-weak -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wno-float-conversion -Wno-non-literal-null-conversion -Wno-objc-literal-conversion -Wno-shorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -isysroot /Applications/Xcode92.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/i PhoneOS11.2.sdk -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -miphoneos-version-min=11.0 -g -Wno-sign-conversion -Wno-infinite-recursion -Wno-comma -Wno-block-capture-autoreleasing -Wno-strict-prototypes -iquote /Library/Developer/Xcode/DerivedData/direct-cizivuuhuugfxugigytptwhcqbcs/Build/Intermedia tes.noindex/ArchiveIntermediates/direct/IntermediateBuildFilesPath/CordovaLib.build/Releas e-iphoneos/CordovaLib.build/Cordova-generated-files.hmap -I/Library/Developer/Xcode/DerivedData/direct-cizivuuhuugfxugigytptwhcqbcs/Build/Intermed iates.noindex/ArchiveIntermediates/direct/IntermediateBuildFilesPath/CordovaLib.build/Rele ase-iphoneos/CordovaLib.build/Cordova-own-target-headers.hmap -I/Library/Developer/Xcode/DerivedData/direct-cizivuuhuugfxugigytptwhcqbcs/Build/Intermed iates.noindex/ArchiveIntermediates/direct/IntermediateBuildFilesPath/CordovaLib.build/Rele ase-iphoneos/CordovaLib.build/Cordova-all-target-headers.hmap -iquote /Library/Developer/Xcode/DerivedData/direct-cizivuuhuugfxugigytptwhcqbcs/Build/Intermedia tes.noindex/ArchiveIntermediates/direct/IntermediateBuildFilesPath/CordovaLib.build/Releas e-iphoneos/CordovaLib.build/Cordova-project-headers.hmap -I/project/build/include -I/Library/Developer/Xcode/DerivedData/direct-cizivuuhuugfxugigytptwhcqbcs/Build/Intermed iates.noindex/ArchiveIntermediates/direct/IntermediateBuildFilesPath/UninstalledProducts/i phoneos/usr/local/lib/include -I/Library/Developer/Xcode/DerivedData/direct-cizivuuhuugfxugigytptwhcqbcs/Build/Intermed iates.noindex/ArchiveIntermediates/direct/IntermediateBuildFilesPath/UninstalledProducts/i nclude -I/Library/Developer/Xcode/DerivedData/direct-cizivuuhuugfxugigytptwhcqbcs/Build/Intermed iates.noindex/ArchiveIntermediates/direct/IntermediateBuildFilesPath/UninstalledProducts/i phoneos/include -I/project/build -I/Library/Developer/Xcode/DerivedData/direct-cizivuuhuugfxugigytptwhcqbcs/Build/Intermed iates.noindex/ArchiveIntermediates/direct/IntermediateBuildFilesPath/CordovaLib.build/Rele ase-iphoneos/CordovaLib.build/DerivedSources/armv7 -I/Library/Developer/Xcode/DerivedData/direct-cizivuuhuugfxugigytptwhcqbcs/Build/Intermed iates.noindex/ArchiveIntermediates/direct/IntermediateBuildFilesPath/CordovaLib.build/Rele ase-iphoneos/CordovaLib.build/DerivedSources -F/project/build -MD -MT dependencies -MF /private/project/build/sharedpch/CordovaLib_Prefix-gbgqwnvnltsypwfwporajmqnqspl/CordovaLi b_Prefix.pch.d -c /project/CordovaLib/CordovaLib_Prefix.pch -o /private/project/build/sharedpch/CordovaLib_Prefix-gbgqwnvnltsypwfwporajmqnqspl/CordovaLi b_Prefix.pch.pch --serialize-diagnostics /private/project/build/sharedpch/CordovaLib_Prefix-gbgqwnvnltsypwfwporajmqnqspl/CordovaLi b_Prefix.pch.dia

      clang: error: invalid iOS deployment version '-miphoneos-version-min=11.0', iOS 10 is the maximum deployment target for 32-bit targets [-Winvalid-ios-deployment-target]

       

       

      I have tried to build using phonegap cli 6.5.0 and 7.1.0.

       

      Do you have any suggestions what might need changing in order to build for ios 11?