Skip to content

dSYM重复生成问题 #152

@XGLucasZhang

Description

@XGLucasZhang

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions