roberthovhannisyan / PhoneGap-Plugin-ListPicker

ListPicker Plugin for Cordova/PhoneGap (iOS and Android)
MIT License
35 stars 40 forks source link

Build error on cordova version ios 4.0.1 #14

Closed jdflaugergues closed 8 years ago

jdflaugergues commented 8 years ago

Hi,

An error occured when I build my app under ios with cordova version ios 4.0.1. The solution is to remove the import file #import <Cordova/CDVDebug.h > into the ListPicker.m.

Could you solve this problem for the next version ? Thanks.

CompileC build/ServiceNav.build/Debug-iphonesimulator/ServiceNav.build/Objects-normal/i386/CDVConnection.o ServiceNav/Plugins/cordova-plugin-network-information/CDVConnection.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
    cd /Users/jdflaugergues/workspace/git/mobile-application/platforms/ios
    export LANG=en_US.US-ASCII
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/jdflaugergues/.nvm/versions/node/v5.9.0/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/apache-ant-1.9.4/bin"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch i386 -fmessage-length=170 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -fcolor-diagnostics -std=c99 -fobjc-arc -fmodules -gmodules -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/var/folders/r3/dt1_tm7n2ng4m7hs5_zm7lx90dq85b/C/org.llvm.clang/ModuleCache/Session.modulevalidation -fmodules-validate-once-per-build-session -Wno-trigraphs -fpascal-strings -O0 -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-shorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -DDEBUG=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.0.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -mios-simulator-version-min=8.0 -g -fvisibility=hidden -Wno-sign-conversion -fobjc-abi-version=2 -fobjc-legacy-dispatch -iquote /Users/jdflaugergues/workspace/git/mobile-application/platforms/ios/build/ServiceNav.build/Debug-iphonesimulator/ServiceNav.build/ServiceNav-generated-files.hmap -I/Users/jdflaugergues/workspace/git/mobile-application/platforms/ios/build/ServiceNav.build/Debug-iphonesimulator/ServiceNav.build/ServiceNav-own-target-headers.hmap -I/Users/jdflaugergues/workspace/git/mobile-application/platforms/ios/build/ServiceNav.build/Debug-iphonesimulator/ServiceNav.build/ServiceNav-all-target-headers.hmap -iquote /Users/jdflaugergues/workspace/git/mobile-application/platforms/ios/build/ServiceNav.build/Debug-iphonesimulator/ServiceNav.build/ServiceNav-project-headers.hmap -I/Users/jdflaugergues/workspace/git/mobile-application/platforms/ios/build/emulator/include -I/Users/jdflaugergues/workspace/git/mobile-application/platforms/ios/build/emulator/usr/local/lib/include -I/Users/jdflaugergues/workspace/git/mobile-application/platforms/ios/build/UninstalledProducts/include -I/Users/jdflaugergues/workspace/git/mobile-application/platforms/ios/build/UninstalledProducts/iphonesimulator/include -I/Users/jdflaugergues/workspace/git/mobile-application/platforms/ios/build/emulator -I/Users/jdflaugergues/workspace/git/mobile-application/platforms/ios/build/ServiceNav.build/Debug-iphonesimulator/ServiceNav.build/DerivedSources/i386 -I/Users/jdflaugergues/workspace/git/mobile-application/platforms/ios/build/ServiceNav.build/Debug-iphonesimulator/ServiceNav.build/DerivedSources -F/Users/jdflaugergues/workspace/git/mobile-application/platforms/ios/build/emulator -include /Users/jdflaugergues/workspace/git/mobile-application/platforms/ios/build/sharedpch/ServiceNav-Prefix-aoakqnokwzpyvyelwdypfmxqkzgq/ServiceNav-Prefix.pch -MMD -MT dependencies -MF /Users/jdflaugergues/workspace/git/mobile-application/platforms/ios/build/ServiceNav.build/Debug-iphonesimulator/ServiceNav.build/Objects-normal/i386/CDVConnection.d --serialize-diagnostics /Users/jdflaugergues/workspace/git/mobile-application/platforms/ios/build/ServiceNav.build/Debug-iphonesimulator/ServiceNav.build/Objects-normal/i386/CDVConnection.dia -c /Users/jdflaugergues/workspace/git/mobile-application/platforms/ios/ServiceNav/Plugins/cordova-plugin-network-information/CDVConnection.m -o /Users/jdflaugergues/workspace/git/mobile-application/platforms/ios/build/ServiceNav.build/Debug-iphonesimulator/ServiceNav.build/Objects-normal/i386/CDVConnection.o

** BUILD FAILED **

The following build commands failed:
        CompileC build/ServiceNav.build/Debug-iphonesimulator/ServiceNav.build/Objects-normal/i386/ListPicker.o ServiceNav/Plugins/cordova-plugin-listpicker/ListPicker.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
ERROR building one of the platforms: Error code 65 for command: xcodebuild with args: -xcconfig,/Users/jdflaugergues/workspace/git/mobile-application/platforms/ios/cordova/build-debug.xcconfig,-project,ServiceNav.xcodeproj,ARCHS=i386,-target,ServiceNav,-configuration,Debug,-sdk,iphonesimulator,build,VALID_ARCHS=i386,CONFIGURATION_BUILD_DIR=/Users/jdflaugergues/workspace/git/mobile-application/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/jdflaugergues/workspace/git/mobile-application/platforms/ios/build/sharedpch
You may not have the required environment or OS to build this project
Error: Error code 65 for command: xcodebuild with args: -xcconfig,/Users/jdflaugergues/workspace/git/mobile-application/platforms/ios/cordova/build-debug.xcconfig,-project,ServiceNav.xcodeproj,ARCHS=i386,-target,ServiceNav,-configuration,Debug,-sdk,iphonesimulator,build,VALID_ARCHS=i386,CONFIGURATION_BUILD_DIR=/Users/jdflaugergues/workspace/git/mobile-application/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/jdflaugergues/workspace/git/mobile-application/platforms/ios/build/sharedpch