ios build error

10 views
Skip to first unread message

alis...@gmail.com

unread,
Feb 14, 2018, 10:22:23 PM2/14/18
to CodenameOne Discussions

CompileC build/Build/Intermediates.noindex/ArchiveIntermediates/AppMgr/IntermediateBuildFilesPath/AppMgr.build/Release-iphoneos/AppMgr.build/Objects-normal/arm64/com_codename1_sensors_SensorsNativeImpl.o AppMgr-src/com_codename1_sensors_SensorsNativeImpl.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
    cd /var/folders/p_/xlvwhg4101z8r81_nl13cds80000gn/T/build6791696417452771665xxx/dist
    export LANG=en_US.US-ASCII
    export PATH="/Applications/Xcode9.2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode9.2.app/Contents/Developer/usr/bin:/Users/administrator/.jenv/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin"
    /Applications/Xcode9.2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch arm64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=c99 -gmodules -Wno-trigraphs -fpascal-strings -O3 -Wno-missing-field-initializers -Wno-missing-prototypes -Werror=return-type -Wno-implicit-atomic-properties -Werror=deprecated-objc-isa-usage -Werror=objc-root-class -Wno-arc-repeated-use-of-weak -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-empty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wno-int-conversion -Wbool-conversion -Wno-enum-conversion -Wno-float-conversion -Wno-non-literal-null-conversion -Wno-objc-literal-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -DCOCOAPODS=1 -DNS_BLOCK_ASSERTIONS=1 -isysroot /Applications/Xcode9.2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.2.sdk -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -miphoneos-version-min=7.0 -g -fvisibility=hidden -Wno-sign-conversion -Wno-infinite-recursion -Wno-comma -Wno-block-capture-autoreleasing -Wno-strict-prototypes -iquote /var/folders/p_/xlvwhg4101z8r81_nl13cds80000gn/T/build6791696417452771665xxx/dist/build/Build/Intermediates.noindex/ArchiveIntermediates/AppMgr/IntermediateBuildFilesPath/AppMgr.build/Release-iphoneos/AppMgr.build/AppMgr-generated-files.hmap -I/var/folders/p_/xlvwhg4101z8r81_nl13cds80000gn/T/build6791696417452771665xxx/dist/build/Build/Intermediates.noindex/ArchiveIntermediates/AppMgr/IntermediateBuildFilesPath/AppMgr.build/Release-iphoneos/AppMgr.build/AppMgr-own-target-headers.hmap -I/var/folders/p_/xlvwhg4101z8r81_nl13cds80000gn/T/build6791696417452771665xxx/dist/build/Build/Intermediates.noindex/ArchiveIntermediates/AppMgr/IntermediateBuildFilesPath/AppMgr.build/Release-iphoneos/AppMgr.build/AppMgr-all-target-headers.hmap -iquote /var/folders/p_/xlvwhg4101z8r81_nl13cds80000gn/T/build6791696417452771665xxx/dist/build/Build/Intermediates.noindex/ArchiveIntermediates/AppMgr/IntermediateBuildFilesPath/AppMgr.build/Release-iphoneos/AppMgr.build/AppMgr-project-headers.hmap -I/var/folders/p_/xlvwhg4101z8r81_nl13cds80000gn/T/build6791696417452771665xxx/dist/build/Build/Intermediates.noindex/ArchiveIntermediates/AppMgr/BuildProductsPath/Release-iphoneos/include -I/var/folders/p_/xlvwhg4101z8r81_nl13cds80000gn/T/build6791696417452771665xxx/dist/Pods/Headers/Public -I/var/folders/p_/xlvwhg4101z8r81_nl13cds80000gn/T/build6791696417452771665xxx/dist/build/Build/Intermediates.noindex/ArchiveIntermediates/AppMgr/IntermediateBuildFilesPath/AppMgr.build/Release-iphoneos/AppMgr.build/DerivedSources/arm64 -I/var/folders/p_/xlvwhg4101z8r81_nl13cds80000gn/T/build6791696417452771665xxx/dist/build/Build/Intermediates.noindex/ArchiveIntermediates/AppMgr/IntermediateBuildFilesPath/AppMgr.build/Release-iphoneos/AppMgr.build/DerivedSources -F/var/folders/p_/xlvwhg4101z8r81_nl13cds80000gn/T/build6791696417452771665xxx/dist/build/Build/Intermediates.noindex/ArchiveIntermediates/AppMgr/BuildProductsPath/Release-iphoneos -isystem /var/folders/p_/xlvwhg4101z8r81_nl13cds80000gn/T/build6791696417452771665xxx/dist/Pods/Headers/Public -include /var/folders/p_/xlvwhg4101z8r81_nl13cds80000gn/T/build6791696417452771665xxx/dist/build/Build/Intermediates.noindex/ArchiveIntermediates/AppMgr/PrecompiledHeaders/AppMgr-Prefix-aasejmxtkuwqxlfwndpsbfnqpeil/AppMgr-Prefix.pch -MMD -MT dependencies -MF /var/folders/p_/xlvwhg4101z8r81_nl13cds80000gn/T/build6791696417452771665xxx/dist/build/Build/Intermediates.noindex/ArchiveIntermediates/AppMgr/IntermediateBuildFilesPath/AppMgr.build/Release-iphoneos/AppMgr.build/Objects-normal/arm64/com_codename1_sensors_SensorsNativeImpl.d --serialize-diagnostics /var/folders/p_/xlvwhg4101z8r81_nl13cds80000gn/T/build6791696417452771665xxx/dist/build/Build/Intermediates.noindex/ArchiveIntermediates/AppMgr/IntermediateBuildFilesPath/AppMgr.build/Release-iphoneos/AppMgr.build/Objects-normal/arm64/com_codename1_sensors_SensorsNativeImpl.dia -c /var/folders/p_/xlvwhg4101z8r81_nl13cds80000gn/T/build6791696417452771665xxx/dist/AppMgr-src/com_codename1_sensors_SensorsNativeImpl.m -o /var/folders/p_/xlvwhg4101z8r81_nl13cds80000gn/T/build6791696417452771665xxx/dist/build/Build/Intermediates.noindex/ArchiveIntermediates/AppMgr/IntermediateBuildFilesPath/AppMgr.build/Release-iphoneos/AppMgr.build/Objects-normal/arm64/com_codename1_sensors_SensorsNativeImpl.o
/var/folders/p_/xlvwhg4101z8r81_nl13cds80000gn/T/build6791696417452771665xxx/dist/AppMgr-src/com_codename1_sensors_SensorsNativeImpl.m:2:9: fatal error: 'com_codename1_sensors_SensorsManager.h' file not found
#import "com_codename1_sensors_SensorsManager.h"
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

** ARCHIVE FAILED **


The following build commands failed:
    CompileC build/Build/Intermediates.noindex/ArchiveIntermediates/AppMgr/IntermediateBuildFilesPath/AppMgr.build/Release-iphoneos/AppMgr.build/Objects-normal/arm64/com_codename1_sensors_SensorsNativeImpl.o AppMgr-src/com_codename1_sensors_SensorsNativeImpl.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
Failed xcodebuild step

Shai Almog

unread,
Feb 15, 2018, 12:31:20 AM2/15/18
to CodenameOne Discussions
You included the sensors cn1lib and didn't use it in the code. You need to remove the lib and delete the impl directories under the lib. Then use refresh libs. You might need to clean the build hints too.
Reply all
Reply to author
Forward
0 new messages