Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dSYM重复生成问题 #152

Open
XGLucasZhang opened this issue Feb 7, 2025 · 0 comments
Open

dSYM重复生成问题 #152

XGLucasZhang opened this issue Feb 7, 2025 · 0 comments

Comments

@XGLucasZhang
Copy link

XGLucasZhang commented Feb 7, 2025

pod install 后, 强制生成了dSYM。和预编译的dSYM冲突了, 每次都需要手动删除。

Multiple commands produce '/Users/xxx/Library/Developer/Xcode/DerivedData/xxx/Build/Products/DevDebug-iphoneos/PLMediaStreamingKit/PLMediaStreamingKit.framework.dSYM’

是否可以添加类似如下代码

# Specify different handling for debug and release
  spec.user_target_xcconfig = { 
    'DEBUG_INFORMATION_FORMAT' => 'dwarf',  # For debug
    'ENABLE_BITCODE' => 'NO'
  }
  
  # Don't include dSYM files in the pod
  spec.pod_target_xcconfig = {
    'SKIP_INSTALL' => 'YES',
    'COPY_PHASE_STRIP' => 'NO',
    'STRIP_INSTALLED_PRODUCT' => 'NO'
  }
  
  # Only include dSYM files for release builds
  spec.preserve_paths = ['Pod/Library/*.framework', 'Pod/Library/*.framework.dSYM']
  spec.script_phases = {
    :name => 'Copy dSYMs',
    :script => 'if [ "${CONFIGURATION}" = "Release" ]; then\n  cp -r "${PODS_ROOT}/PLMediaStreamingKit/Pod/Library/*.framework.dSYM" "${BUILT_PRODUCTS_DIR}/"\nfi',
    :execution_position => :after_compile
  }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant