Pod 安装警告:是多个组的成员
Pod install warning : is a member of multiple groups
Motive : 创建一个带有本地化 xibs 的库。
我将 Podspec 更改为:
s.name = "MyLibrary"
s.version = "0.0.1"
s.summary = "A short description of MyLibrary."
s.license = "MIT (example)"
s.author = { "" => "" }
s.source_files = "MyLibrary", "MyLibrary/**/*.{h,m,mm,cpp}"
s.exclude_files = "Classes/Exclude"
s.resources = "MyLibrary/**/**/*.{png, lproj}"
#CHANGE THAT MADE ================>
s.ios.resource_bundle = { 'CamerCaptureLibBundle-iOS' => ['**/**/*.lproj'] }
s.dependency "OpenCV", "~> 2.4.9.1"
s.dependency 'FrameAccessor'
end
遵循此 link 的指导 - http://yannickloriot.com/2014/02/cocoapods-and-the-localized-string-files/
但这在我将 Pod 安装为 -
时给了我一个警告
Update all pods
Updating local specs repositories
Analyzing dependencies
Fetching podspec for `MyLibrary` from `../MyLibrary`
Downloading dependencies
Using AFNetworking (2.6.0)
Using CHTCollectionViewWaterfallLayout (0.9.2)
Installing MyLibrary 0.0.1 (was 0.0.1)
Using CorePlot (1.6)
Using FrameAccessor (2.0)
Using HKCircularProgressView (1.1.0)
Using OpenCV (2.4.9.2)
Using ViewDeck (2.3.1)
Generating Pods project
2015-08-20 15:31:39.478 ruby[31394:8637187] warning: The file reference for
"Base.lproj"
is a member of multiple groups ("Capture" and "Slideshow"); this indicates a malformed
project. Only the membership in one of the groups will be preserved (but membership
in targets will be unaffected). If you want a reference to the same file in more than
one group, please add another reference to the same path.
2015-08-20 15:31:39.479 ruby[31394:8637187] warning: The file reference for "de.lproj"
is a member of multiple groups ("Capture" and "Slideshow"); this indicates a malformed
project. Only the membership in one of the groups will be preserved (but membership in
targets will be unaffected). If you want a reference to the same file in more than one
group, please add another reference to the same path.
2015-08-20 15:31:39.479 ruby[31394:8637187] warning: The file reference for "en.lproj" is
a member of multiple groups ("Capture" and "Slideshow"); this indicates a malformed project.
Only the membership in one of the groups will be preserved (but membership in targets will
be unaffected). If you want a reference to the same file in more than one group, please
add another reference to the same path.
Integrating client project
Sending stats
我需要的
- 如何处理这个错误?
- 我如何使用具有本地化 xib 的 pod,以便在安装我的源和资源时它们应该采用相同的格式...?
您正在导入 Base.lproj
两次:在
s.resources = "MyLibrary/**/**/*.{png, lproj}"
和 s.ios.resource_bundle = { 'CamerCaptureLibBundle-iOS' => ['**/**/*.lproj'] }
您必须更改 s.resources
导入以排除 Base.lproj
文件。
Motive : 创建一个带有本地化 xibs 的库。
我将 Podspec 更改为:
s.name = "MyLibrary"
s.version = "0.0.1"
s.summary = "A short description of MyLibrary."
s.license = "MIT (example)"
s.author = { "" => "" }
s.source_files = "MyLibrary", "MyLibrary/**/*.{h,m,mm,cpp}"
s.exclude_files = "Classes/Exclude"
s.resources = "MyLibrary/**/**/*.{png, lproj}"
#CHANGE THAT MADE ================>
s.ios.resource_bundle = { 'CamerCaptureLibBundle-iOS' => ['**/**/*.lproj'] }
s.dependency "OpenCV", "~> 2.4.9.1"
s.dependency 'FrameAccessor'
end
遵循此 link 的指导 - http://yannickloriot.com/2014/02/cocoapods-and-the-localized-string-files/
但这在我将 Pod 安装为 -
时给了我一个警告Update all pods
Updating local specs repositories
Analyzing dependencies
Fetching podspec for `MyLibrary` from `../MyLibrary`
Downloading dependencies
Using AFNetworking (2.6.0)
Using CHTCollectionViewWaterfallLayout (0.9.2)
Installing MyLibrary 0.0.1 (was 0.0.1)
Using CorePlot (1.6)
Using FrameAccessor (2.0)
Using HKCircularProgressView (1.1.0)
Using OpenCV (2.4.9.2)
Using ViewDeck (2.3.1)
Generating Pods project
2015-08-20 15:31:39.478 ruby[31394:8637187] warning: The file reference for
"Base.lproj"
is a member of multiple groups ("Capture" and "Slideshow"); this indicates a malformed
project. Only the membership in one of the groups will be preserved (but membership
in targets will be unaffected). If you want a reference to the same file in more than
one group, please add another reference to the same path.
2015-08-20 15:31:39.479 ruby[31394:8637187] warning: The file reference for "de.lproj"
is a member of multiple groups ("Capture" and "Slideshow"); this indicates a malformed
project. Only the membership in one of the groups will be preserved (but membership in
targets will be unaffected). If you want a reference to the same file in more than one
group, please add another reference to the same path.
2015-08-20 15:31:39.479 ruby[31394:8637187] warning: The file reference for "en.lproj" is
a member of multiple groups ("Capture" and "Slideshow"); this indicates a malformed project.
Only the membership in one of the groups will be preserved (but membership in targets will
be unaffected). If you want a reference to the same file in more than one group, please
add another reference to the same path.
Integrating client project
Sending stats
我需要的
- 如何处理这个错误?
- 我如何使用具有本地化 xib 的 pod,以便在安装我的源和资源时它们应该采用相同的格式...?
您正在导入 Base.lproj
两次:在
s.resources = "MyLibrary/**/**/*.{png, lproj}"
和 s.ios.resource_bundle = { 'CamerCaptureLibBundle-iOS' => ['**/**/*.lproj'] }
您必须更改 s.resources
导入以排除 Base.lproj
文件。