0%

iOS其他常见问题

问题

error: cannot load module ‘target’ as ‘anotherTarget’

复制了一个新的target,但是之前的target里是 oc swift 混编,导致出现这个状况。

error: cannot load module 'target' as 'anotherTarget'
Command MergeSwiftModule failed with a nonzero exit code

building for iOS Simulator, but linking in dylib built for iOS

post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings["ONLY_ACTIVE_ARCH"] = "YES"
end
end
end