Airtower / core-plot

Automatically exported from code.google.com/p/core-plot
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Can't build iOS project with xcodebuild #436

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. build the app with xcodebuild (xcodebuild -scheme MyAppTests -sdk 
iphonesimulator TEST_AFTER_BUILD=YES clean build)

2. observe failure message:

=== BUILD NATIVE TARGET CorePlot-CocoaTouch OF PROJECT CorePlot-CocoaTouch WITH 
CONFIGURATION Debug ===
Check dependencies
No architectures to compile for (ARCHS=armv6 armv7, VALID_ARCHS=i386).

3. change the VALID_ARCHS to armv6 armv7 in CorePlot to resolve this issue

4. build the app with xcodebuild (xcodebuild -scheme MyIndexTests -sdk 
iphonesimulator TEST_AFTER_BUILD=YES clean build)

5. observe failures:

** BUILD FAILED **

The following build commands failed:
    CompileC <my app dir>/Build/Intermediates/CorePlot-CocoaTouch.build/Debug-iphonesimulator/CorePlot-CocoaTouch.build/Objects-normal/armv6/CPTBarPlot.o Source/CPTBarPlot.m normal armv6 objective-c com.apple.compilers.llvm.clang.1_0.compiler
    CompileC <my app dir>/Build/Intermediates/CorePlot-CocoaTouch.build/Debug-iphonesimulator/CorePlot-CocoaTouch.build/Objects-normal/armv6/CPTPlotSpace.o Source/CPTPlotSpace.m normal armv6 objective-c com.apple.compilers.llvm.clang.1_0.compiler
    CompileC <my app dir>/Build/Intermediates/CorePlot-CocoaTouch.build/Debug-iphonesimulator/CorePlot-CocoaTouch.build/Objects-normal/armv6/CPTPlotAreaFrame.o Source/CPTPlotAreaFrame.m normal armv6 objective-c com.apple.compilers.llvm.clang.1_0.compiler
    CompileC <my app dir>/Build/Intermediates/CorePlot-CocoaTouch.build/Debug-iphonesimulator/CorePlot-CocoaTouch.build/Objects-normal/armv6/CPTGraph.o Source/CPTGraph.m normal armv6 objective-c com.apple.compilers.llvm.clang.1_0.compiler
    CompileC <my app dir>/Build/Intermediates/CorePlot-CocoaTouch.build/Debug-iphonesimulator/CorePlot-CocoaTouch.build/Objects-normal/armv6/CPTPlotSymbol.o Source/CPTPlotSymbol.m normal armv6 objective-c com.apple.compilers.llvm.clang.1_0.compiler
    CompileC <my app dir>/Build/Intermediates/CorePlot-CocoaTouch.build/Debug-iphonesimulator/CorePlot-CocoaTouch.build/Objects-normal/armv6/CPTScatterPlot.o Source/CPTScatterPlot.m normal armv6 objective-c com.apple.compilers.llvm.clang.1_0.compiler
    CompileC <my app dir>/Build/Intermediates/CorePlot-CocoaTouch.build/Debug-iphonesimulator/CorePlot-CocoaTouch.build/Objects-normal/armv6/CPTPlot.o Source/CPTPlot.m normal armv6 objective-c com.apple.compilers.llvm.clang.1_0.compiler
    CompileC <my app dir>/Build/Intermediates/CorePlot-CocoaTouch.build/Debug-iphonesimulator/CorePlot-CocoaTouch.build/Objects-normal/armv6/CPTXYGraph.o Source/CPTXYGraph.m normal armv6 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(8 failures)

6. observe one specific (all 8 are the same):

CompileC <my app 
dir>/Build/Intermediates/CorePlot-CocoaTouch.build/Debug-iphonesimulator/CorePlo
t-CocoaTouch.build/Objects-normal/armv6/CPTBarPlot.o Source/CPTBarPlot.m normal 
armv6 objective-c com.apple.compilers.llvm.clang.1_0.compiler
    cd /Users/josh/Code/goodmeasures/iphone/CorePlot/framework
    setenv LANG en_US.US-ASCII
    setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/josh/.rvm/gems/ruby-1.9.3-p125/bin:/Users/josh/.rvm/gems/ruby-1.9.3-p125@global/bin:/Users/josh/.rvm/rubies/ruby-1.9.3-p125/bin:/Users/josh/.rvm/bin:/usr/local/git/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch armv6 -fmessage-length=0 -std=c99 -Wno-trigraphs -fpascal-strings -O0 -Werror -Wmissing-field-initializers -Wmissing-prototypes -Wreturn-type -Wno-implicit-atomic-properties -Wformat -Wmissing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wsign-compare -Wno-shorten-64-to-32 -Wpointer-sign -Wnewline-eof -Wno-selector -Wno-strict-selector-match -Wno-undeclared-selector -Wno-deprecated-implementations -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk -fexceptions -Wprotocol -Wdeprecated-declarations -mmacosx-version-min=10.6 -g -Wno-conversion -Wno-sign-conversion -fobjc-abi-version=2 -fobjc-legacy-dispatch "-DIBOutlet=__attribute__((iboutlet))" "-DIBOutletCollection(ClassName)=__attribute__((iboutletcollection(ClassName)))" "-DIBAction=void)__attribute__((ibaction)" -D__IPHONE_OS_VERSION_MIN_REQUIRED=30103 -iquote <my app dir>/Build/Intermediates/CorePlot-CocoaTouch.build/Debug-iphonesimulator/CorePlot-CocoaTouch.build/CorePlot-CocoaTouch-generated-files.hmap -I<my app dir>/Build/Intermediates/CorePlot-CocoaTouch.build/Debug-iphonesimulator/CorePlot-CocoaTouch.build/CorePlot-CocoaTouch-own-target-headers.hmap -I<my app dir>/Build/Intermediates/CorePlot-CocoaTouch.build/Debug-iphonesimulator/CorePlot-CocoaTouch.build/CorePlot-CocoaTouch-all-target-headers.hmap -iquote <my app dir>/Build/Intermediates/CorePlot-CocoaTouch.build/Debug-iphonesimulator/CorePlot-CocoaTouch.build/CorePlot-CocoaTouch-project-headers.hmap -I<my app dir>/Build/Products/Debug-iphonesimulator/include -I<my app dir>/Build/Intermediates/CorePlot-CocoaTouch.build/Debug-iphonesimulator/CorePlot-CocoaTouch.build/DerivedSources/armv6 -I<my app dir>/Build/Intermediates/CorePlot-CocoaTouch.build/Debug-iphonesimulator/CorePlot-CocoaTouch.build/DerivedSources -F<my app dir>/Build/Products/Debug-iphonesimulator -lstdc++ -falign-loops=16 -MMD -MT dependencies -MF <my app dir>/Build/Intermediates/CorePlot-CocoaTouch.build/Debug-iphonesimulator/CorePlot-CocoaTouch.build/Objects-normal/armv6/CPTBarPlot.d --serialize-diagnostics <my app dir>/Build/Intermediates/CorePlot-CocoaTouch.build/Debug-iphonesimulator/CorePlot-CocoaTouch.build/Objects-normal/armv6/CPTBarPlot.dia -c /Users/josh/Code/goodmeasures/iphone/CorePlot/framework/Source/CPTBarPlot.m -o <my app dir>/Build/Intermediates/CorePlot-CocoaTouch.build/Debug-iphonesimulator/CorePlot-CocoaTouch.build/Objects-normal/armv6/CPTBarPlot.o
clang: warning: -Z-reserved-lib-stdc++: 'linker' input unused when '-c' is 
present
clang: warning: argument unused during compilation: '-falign-loops=16'
In file included from 
/Users/josh/Code/goodmeasures/iphone/CorePlot/framework/Source/CPTBarPlot.m:1:
In file included from 
/Users/josh/Code/goodmeasures/iphone/CorePlot/framework/Source/CPTBarPlot.h:1:
In file included from 
/Users/josh/Code/goodmeasures/iphone/CorePlot/framework/Source/CPTDefinitions.h:
1:
In file included from 
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/De
veloper/SDKs/iPhoneSimulator5.1.sdk/System/Library/Frameworks/Foundation.framewo
rk/Headers/Foundation.h:6:
In file included from 
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/De
veloper/SDKs/iPhoneSimulator5.1.sdk/System/Library/Frameworks/CoreFoundation.fra
mework/Headers/CoreFoundation.h:11:
In file included from 
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/De
veloper/SDKs/iPhoneSimulator5.1.sdk/usr/include/sys/types.h:78:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/De
veloper/SDKs/iPhoneSimulator5.1.sdk/usr/include/machine/types.h:37:10: fatal 
error: 'arm/types.h' file not found
#include "arm/types.h"
         ^
1 error generated.

What is the expected output? What do you see instead?

I'd expect to see this build successfully

What version of the product are you using? On what operating system?

I'm using the code from the repo (I'm at commit 
3da0710fc024ceb00f4ca25dec49938ca0ba9c02) and Xcode 4.3 on Lion.

Please provide any additional information below.

Original issue reported on code.google.com by j...@roadfiresoftware.com on 14 May 2012 at 6:43

GoogleCodeExporter commented 8 years ago
In case the commit I'm using isn't clear - it's from Sunday, March 25, 2012.

Original comment by j...@roadfiresoftware.com on 14 May 2012 at 6:45

GoogleCodeExporter commented 8 years ago

Original comment by eskr...@mac.com on 15 May 2012 at 12:21

GoogleCodeExporter commented 8 years ago
I´m having the same problem In my project here at work, I´ll keep you posted 
If I find the problem

Original comment by deadfalkon@gmail.com on 21 May 2012 at 4:02

GoogleCodeExporter commented 8 years ago
The Core Plot setting should be ARCHS = "$(ARCHS_STANDARD_32_BIT)"; for both 
debug and release. This expands to armv6 armv7. Make sure the "Build Active 
Architecture Only" setting in Core Plot and your app is "NO" for configuration 
(debug and/or release) that you will build with xcodebuild.

Original comment by eskr...@mac.com on 24 May 2012 at 1:04

GoogleCodeExporter commented 8 years ago
Actually, with the iOS 5 SDK, "$(ARCHS_STANDARD_32_BIT)" expands to armv7 only. 
Changing ARCHS to armv6 armv7 didn't solve the problem.

Original comment by j...@roadfiresoftware.com on 24 May 2012 at 12:36

GoogleCodeExporter commented 8 years ago
What about the "Build Active Architecture Only" setting?

Original comment by eskr...@mac.com on 3 Jun 2012 at 10:38

GoogleCodeExporter commented 8 years ago
It looks like this fixed it for me: http://www.timac.org/CorePlot/

4 files to replace.

Original comment by m...@stuffmc.com on 21 Jun 2012 at 12:38

GoogleCodeExporter commented 8 years ago
Set ARCHS = "$(ARCHS_STANDARD_32_BIT) armv6" if you need both ARM 
architectures. Recent changes to the code fixed the type issues fixed by the 
code in comment #7.

Original comment by eskr...@mac.com on 4 Aug 2012 at 11:06