facebookarchive / xcbuild

Xcode-compatible build tool.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

error:Ubuntu run xcbuild

heroims opened this issue · comments

commented

hero@hero-virtual-machine:~/Desktop/test$ xcbuild -project test.xcodeprojwarning: unhandled ProductType key IsUnitTest
warning: unhandled ProductType key IsUITest
warning: unhandled ProductType key IsUnitTest
warning: unhandled ProductType key IsUnitTest
warning: unhandled ProductType key IsUITest
warning: unhandled ProductType key IsUnitTest
warning: unhandled ProductType key IsUnitTest
warning: unhandled ProductType key IsUITest
warning: unhandled ProductType key IsUnitTest
=== BUILD TARGET test OF PROJECT test WITH THE DEFAULT CONFIGURATION (Release) ===

Check dependencies

Write auxiliary files
write-file /home/hero/Library/Developer/Xcode/DerivedData/test-dwkovwncxzfzbehdvrhcvhzmcqgp/Build/Intermediates/test.build/Release-iphoneos/test.build/test.hmap
write-file /home/hero/Library/Developer/Xcode/DerivedData/test-dwkovwncxzfzbehdvrhcvhzmcqgp/Build/Intermediates/test.build/Release-iphoneos/test.build/test-own-target-headers.hmap
write-file /home/hero/Library/Developer/Xcode/DerivedData/test-dwkovwncxzfzbehdvrhcvhzmcqgp/Build/Intermediates/test.build/Release-iphoneos/test.build/test-all-target-headers.hmap
write-file /home/hero/Library/Developer/Xcode/DerivedData/test-dwkovwncxzfzbehdvrhcvhzmcqgp/Build/Intermediates/test.build/Release-iphoneos/test.build/test-all-non-framework-target-headers.hmap
write-file /home/hero/Library/Developer/Xcode/DerivedData/test-dwkovwncxzfzbehdvrhcvhzmcqgp/Build/Intermediates/test.build/Release-iphoneos/test.build/test-generated-files.hmap
write-file /home/hero/Library/Developer/Xcode/DerivedData/test-dwkovwncxzfzbehdvrhcvhzmcqgp/Build/Intermediates/test.build/Release-iphoneos/test.build/test-project-headers.hmap
write-file /home/hero/Library/Developer/Xcode/DerivedData/test-dwkovwncxzfzbehdvrhcvhzmcqgp/Build/Intermediates/test.build/Release-iphoneos/test.build/Objects-normal/arm64/test.LinkFileList
write-file /home/hero/Library/Developer/Xcode/DerivedData/test-dwkovwncxzfzbehdvrhcvhzmcqgp/Build/Intermediates/test.build/Release-iphoneos/test.build/Objects-normal/armv7/test.LinkFileList

Create product structure

CompileStoryboard /home/hero/Desktop/test/test/Base.lproj/Main.storyboard
cd /home/hero/Desktop/test
export DEVELOPER_DIR=/media/hero/5F95A6701FE51027/Xcode.app/Contents/Developer
export PATH=/media/hero/5F95A6701FE51027/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/media/hero/5F95A6701FE51027/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/usr/local/bin:/media/hero/5F95A6701FE51027/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/usr/bin:/media/hero/5F95A6701FE51027/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/usr/local/bin:/media/hero/5F95A6701FE51027/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin:/media/hero/5F95A6701FE51027/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/libexec:/media/hero/5F95A6701FE51027/Xcode.app/Contents/Developer/usr/bin:/media/hero/5F95A6701FE51027/Xcode.app/Contents/Developer/usr/local/bin:/media/hero/5F95A6701FE51027/Xcode.app/Contents/Developer/Tools:/home/hero/Desktop/xcbuild/:/home/hero/Desktop/cmake-3.9.1/:/home/hero/Desktop/ninja/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
export XCODE_DEVELOPER_USR_PATH=/media/hero/5F95A6701FE51027/Xcode.app/Contents/Developer/usr/bin/..
/media/hero/5F95A6701FE51027/Xcode.app/Contents/Developer/usr/bin/ibtool --errors --warnings --notices --target-device iphone --target-device ipad --module test --output-partial-info-plist /home/hero/Library/Developer/Xcode/DerivedData/test-dwkovwncxzfzbehdvrhcvhzmcqgp/Build/Intermediates/test.build/Release-iphoneos/test.build/Main-SBPartialInfo.plist --auto-activate-custom-fonts --output-format human-readable-text --compilation-directory /home/hero/Library/Developer/Xcode/DerivedData/test-dwkovwncxzfzbehdvrhcvhzmcqgp/Build/Intermediates/test.build/Release-iphoneos/test.build/Base.lproj /home/hero/Desktop/test/test/Base.lproj/Main.storyboard --minimum-deployment-target 10.3

** BUILD FAILED **

The following build commands failed:
CompileStoryboard /home/hero/Desktop/test/test/Base.lproj/Main.storyboard
(1 failure)
hero@hero-virtual-machine:~/Desktop/osxcross$ cmake --version
cmake version 3.9.1

CMake suite maintained and supported by Kitware (kitware.com/cmake).
hero@hero-virtual-machine:/Desktop/osxcross$ ninja --version
1.7.2.git
hero@hero-virtual-machine:
/Desktop/osxcross$ gcc --version
gcc (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

hero@hero-virtual-machine:~/Desktop/osxcross$

commented

when I remove storyboard,It's also build failed with same error on main.m.

Example :CompileC /xxxx/Objects-normal/armv7/main.o aaaaaaa/main.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler