Skip to main content

Remove VGPSDK.framework and update Podfile

Remove VGPSDK.framework in your Frameworks, Libraries, and Embedded Content

5.1.2

Edit Podfile content keeping only pod 'VGPSDK', for example:

platform :ios, '13.0'

abstract_target 'SharedPods' do
use_frameworks!
use_modular_headers!

# VGP framework
pod 'VGPSDK'

# Example for Unity3D
workspace 'Unity-iPhone'
target 'Unity-iPhone' do
project 'Unity/Unity-iPhone'
end
target 'UnityFramework' do
project 'Unity/Unity-iPhone'
end
end

post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
cflags = config.build_settings['OTHER_CFLAGS'] || ['$(inherited)']
cflags << '-fembed-bitcode'
config.build_settings['OTHER_CFLAGS'] = cflags
config.build_settings['ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES'] = 'NO'
config.build_settings['ONLY_ACTIVE_ARCH'] = 'NO'
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '13.0'
end
end
# If you use VGPSDK in UnityFramework, add the following script
Dir.glob("Pods/**/Pods*iPhone*.xcconfig").each do |xcconfig_path|
puts "Patching #{xcconfig_path}"
text = File.read(xcconfig_path)
text.gsub!(/^OTHER_LDFLAGS.*$/, 'OTHER_LDFLAGS = -ObjC')
File.write(xcconfig_path, text)
end
end

Run command pod deintegrate and pod install

Fix UnityFramework issues

Follow the instructions