[ad_1]
I’m making an attempt to create a framework which depends on Tensorflow. I’ve created a Podfile
goal 'SwiftVideoProcessing' do
platform :ios, '14.0'
# Remark the following line when you're not utilizing Swift and do not need to use dynamic frameworks use_frameworks!
use_frameworks!
# Pods for SwingAnalyzerStoryboard
pod 'TensorFlowLiteSwift'
pod 'TensorFlowLiteSwift/Metallic'
finish
Since I’ve used pod I have to work with the xcworkspace as a substitute of the mission. Every part builds tremendous in xcode so long as I’m not archiving something
If I try to archive it from XCode, it can not discover TensorflowLiteC and equally, it doesn’t work if I try to construct from the terminal.
When I attempt to construct it from terminal so I can create an xcframework it can not discover Tensorflow.
xcodebuild -workspace SwiftVideoProcessing.xcworkspace archive
-scheme SwiftVideoProcessing
-configuration Launch
-archivePath Archive/SwiftVideoProcessing-iphoneos.xcarchive
-sdk iphoneos
SKIP_INSTALL=NO
leads to
/Customers/identify/Code/Git/appname/ios/VideoProcessing/SwiftModule/SwiftVideoProcessing/Pods/TensorFlowLiteSwift/tensorflow/lite/swift/Sources/Delegate.swift:15:8: error: no such module 'TensorFlowLiteC'
import TensorFlowLiteC
^
** ARCHIVE FAILED **
The next construct instructions failed:
CompileSwift regular arm64 (in goal 'TensorFlowLiteSwift' from mission 'Pods')
CompileSwiftSources regular arm64 com.apple.xcode.instruments.swift.compiler (in goal 'TensorFlowLiteSwift' from mission 'Pods')
(2 failures)
My Framework Search Header appears like:
$(inherited)
"${PODS_CONFIGURATION_BUILD_DIR}/TensorFlowLiteSwift"
"${PODS_ROOT}/TensorFlowLiteC/Frameworks"
"${PODS_XCFRAMEWORKS_BUILD_DIR}/TensorFlowLiteC/Core"
"${PODS_XCFRAMEWORKS_BUILD_DIR}/TensorFlowLiteC/Metallic"
[ad_2]
