Can't Build on xcode 8 [Macpods]
geoeo opened this issue · 6 comments
Hey I can't build the project in xcode 8.
I can build in xcode 9 beta BUT when I try to deploy to a actual device I get the same error
This is the error message is:
Undefined symbols for architecture arm64:
"OBJC_CLASS$_MPSCNNSpatialNormalization", referenced from:
objc-class-ref in SpatialNorm.o
"OBJC_CLASS$_MPSCNNSoftMax", referenced from:
objc-class-ref in Softmax.o
"OBJC_CLASS$_MPSImageLanczosScale", referenced from:
objc-class-ref in Scale.o
objc-class-ref in Start.o
"OBJC_CLASS$_MPSCNNPoolingMax", referenced from:
objc-class-ref in Pooling.o
"OBJC_CLASS$_MPSCNNPoolingAverage", referenced from:
objc-class-ref in Pooling.o
"OBJC_CLASS$_MPSTemporaryImage", referenced from:
objc-class-ref in ConvTranspose.o
objc-class-ref in Start.o
"OBJC_CLASS$_MPSImageDescriptor", referenced from:
objc-class-ref in Add.o
objc-class-ref in BGRAtoRGBA.o
objc-class-ref in Concat-2F047EC0A4EC20B2.o
objc-class-ref in Convolution.o
objc-class-ref in ConvTranspose.o
objc-class-ref in Crop.o
objc-class-ref in FullyConnected.o
...
"OBJC_CLASS$_MPSCNNConvolution", referenced from:
objc-class-ref in Convolution.o
"OBJC_CLASS$_MPSImage", referenced from:
objc-class-ref in Add.o
objc-class-ref in BGRAtoRGBA.o
objc-class-ref in Concat-2F047EC0A4EC20B2.o
objc-class-ref in Convolution.o
objc-class-ref in ConvTranspose.o
objc-class-ref in Crop.o
objc-class-ref in FullyConnected.o
...
"OBJC_CLASS$_MPSCNNNeuronSigmoid", referenced from:
objc-class-ref in ActivationNeuronType.o
"OBJC_CLASS$_MPSCNNConvolutionDescriptor", referenced from:
objc-class-ref in Convolution.o
objc-class-ref in FullyConnected.o
"OBJC_CLASS$_MPSCNNNeuron", referenced from:
objc-class-ref in ActivationNeuronType.o
objc-class-ref in Neuron.o
"OBJC_CLASS$_MPSCNNFullyConnected", referenced from:
objc-class-ref in FullyConnected.o
"OBJC_CLASS$_MPSCNNNeuronReLU", referenced from:
objc-class-ref in ActivationNeuronType.o
"OBJC_CLASS$_MPSCNNNeuronLinear", referenced from:
objc-class-ref in ActivationNeuronType.o
"OBJC_CLASS$_MPSCNNPooling", referenced from:
objc-class-ref in Pooling.o
"OBJC_CLASS$_MPSCNNNeuronTanH", referenced from:
objc-class-ref in ActivationNeuronType.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
What problem are you having with Xcode 8? Are you using Carthage? Have you added all frameworks to the target?
No, I am using Mac Pods. My Podfile is taken from the Installation Section:
platform :ios, '10.0'
target 'Classifier_Benderthon' do
use_frameworks!
pod 'MetalBender', :git => 'https://github.com/xmartlabs/Bender.git'
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['SWIFT_VERSION'] = '3.2'
end
end
end
end
I assumed it should work like this out of the box.
I switched to carthage and it builds fine now.
Oh, but not this project, but a project that uses Bender as a dependency. Ok.
Yes sorry. I trying to use it as a library for a classification app
Fixed by #66