我的" project.pbxproj"受版本控制。 Xcode不断更改通过子项目链接的库的remoteGlobalIDString
。
有没有其他人有这个问题?如果是,我该怎么办呢?
5A1F61F5162C0F6B001ABF64 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 5A0A1B5816147A4A00C65C6D /* MyReferencedSubProject.xcodeproj */;
proxyType = 1;
remoteGlobalIDString = 235B356E47F64C9DB6D76F45; << THIS CHANGES ALL THE TIME
remoteInfo = MyLibInMySubProject;
};
答案 0 :(得分:1)
只有这样才能解决我重写由cmake生成的项目UUID:
YOUR_TARGET_UUID=$(grep -E -m 1 '[A-F0-9]{24} \/\* YOUR_TARGET \*\/ = {' \
"Project.xcodeproj/project.pbxproj" | \
grep -o -E '[A-F0-9]{24}')
sed -i '' "s/${YOUR_TARGET_UUID}/00000000DEADBEEF00000000/g" \
"Project.xcodeproj/project.pbxproj"