iOS Cocoapod错误:“不包含位码”

时间:2019-07-09 01:25:59

标签: ios xcode frameworks cocoapods bitcode

我安装了starPrinting吊舱。 当我运行它时,出现此错误:

“不包含位码”

ld: ‘/Users/demoname/demofoldername/demoname/Pods/StarPrinting/StarIO.framework/StarIO(SMPort.o)’ **does not contain bitcode**. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. for architecture arm64


STEP 1

然后我禁用了项目,目标,容器和特定容器的位码。我还在我的Podfile中添加了一些代码,以确保在Pod上禁用了位代码。

enter image description here

enter image description here

enter image description here

enter image description here

platform :ios, '10.0'
use_frameworks!

def myPods
pod 'StarPrinting'
end

target 'Demo' do
myPods
end

target 'DemoTests' do
myPods
end


post_install do |installer|
  installer.pods_project.targets.each do |target|
    target.build_configurations.each do |configuration|
      configuration.build_settings['SWIFT_VERSION'] = '4.0'
    end
  end

  installer.pods_project.targets.each do |target|
    target.build_configurations.each do | configuration |
      configuration.build_settings['ENABLE_BITCODE'] = 'NO'
    end
  end

end

第2步

完成此操作后,我进行了Pod解集成和Pod安装。 然后,我运行它并收到此错误:

“不是目录”

enter image description here


结论

我在做什么错?为什么会有这么多麻烦?

0 个答案:

没有答案