Able to compile/build after doing pod update.
Realm pod to install correctly.
The Realm pod's ~/core and ~/include directories are missing, along with all of their included files. Most obvious is the missing of the Realm.h header file. v2.1.0 pod works fine.
pod 'Realm' in App Target section of Podfile, followed by pod install.
pod 'Realm'
ProductName: Mac OS X
ProductVersion: 10.12.2
BuildVersion: 16C48b
/Applications/Xcode.app/Contents/Developer
Xcode 8.1
Build version 8B62
/Users/darrenehlers/.rvm/gems/ruby-2.2.3/bin/pod
1.1.1
Realm (2.1.1)
/bin/bash
GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin16)
(not in use here)
/usr/bin/git
git version 2.9.3 (Apple Git-75)
@ehlersd please try to clean your Xcode build folder (Product -> (Press and hold option key) -> Clean Build Folder...).
If it doesn't help, try to clean your CocoaPods cache and re-integrate pods:
rm -rf Pods
pod cache clean Realm
pod update
That made no difference (but aside from the pod cache clean Realm, I had already tried it...but still I tried it again).
Below is a simple, empty project which contains only a single pod. As you can see, Realm.h (and the other headers) are not present anywhere in the zip.
Hi @ehlersd, your Xcode project appears to have been incorrectly configured.
By running pod deintegrate && pod install, I could get everything building again. I've found that this is generally a good way to "reset" Xcode projects if they've been set up in a way that CocoaPods won't automatically find all its source or header files.
Here's the diff in the pbxproj file after running those commands:
diff --git a/RealmTest.xcodeproj/project.pbxproj b/RealmTest.xcodeproj/project.pbxproj
index 87400ff..db506b0 100644
--- a/RealmTest.xcodeproj/project.pbxproj
+++ b/RealmTest.xcodeproj/project.pbxproj
@@ -7,8 +7,9 @@
objects = {
/* Begin PBXBuildFile section */
- 50324231151D783D93F95FCC /* Pods_RealmTestUITests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7737F5D32420A654DB9935E0 /* Pods_RealmTestUITests.framework */; };
- 588C82B88E92FBB3A21A683D /* Pods_RealmTestTests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 79E8A80257C3D9FDB1D67D0F /* Pods_RealmTestTests.framework */; };
+ 166EFCBC4AF5F7702E375FC8 /* Pods_RealmTestTests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B10C9C107289AAA2CA398E9E /* Pods_RealmTestTests.framework */; };
+ 423EFB246D4E3BDC8462A88F /* Pods_RealmTest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A2FFDCB5D5C16CA8676A7E76 /* Pods_RealmTest.framework */; };
+ 4F9FBDCD5DAAABF5450FA302 /* Pods_RealmTestUITests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3737DEBC4EE10859FF700A45 /* Pods_RealmTestUITests.framework */; };
6A4FEE291DF5D6A30089050B /* Podfile in Resources */ = {isa = PBXBuildFile; fileRef = 6A4FEE281DF5D6A30089050B /* Podfile */; };
6A7CF6181DF5D5C500D54676 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 6A7CF6171DF5D5C500D54676 /* main.m */; };
6A7CF61B1DF5D5C500D54676 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 6A7CF61A1DF5D5C500D54676 /* AppDelegate.m */; };
@@ -18,7 +19,6 @@
6A7CF6261DF5D5C500D54676 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 6A7CF6241DF5D5C500D54676 /* LaunchScreen.storyboard */; };
6A7CF6311DF5D5C500D54676 /* RealmTestTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 6A7CF6301DF5D5C500D54676 /* RealmTestTests.m */; };
6A7CF63C1DF5D5C500D54676 /* RealmTestUITests.m in Sources */ = {isa = PBXBuildFile; fileRef = 6A7CF63B1DF5D5C500D54676 /* RealmTestUITests.m */; };
- B9185C406987067581369573 /* Pods_RealmTest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7A543924CBEA131A8B5BAE93 /* Pods_RealmTest.framework */; };
/* End PBXBuildFile section */
/* Begin PBXContainerItemProxy section */
@@ -39,8 +39,8 @@
/* End PBXContainerItemProxy section */
/* Begin PBXFileReference section */
- 1071BAD235260652D9B75781 /* Pods-RealmTestTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RealmTestTests.release.xcconfig"; path = "Pods/Target Support Files/Pods-RealmTestTests/Pods-RealmTestTests.release.xcconfig"; sourceTree = "<group>"; };
- 295B5881AB1F217B0DB73CE2 /* Pods-RealmTestUITests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RealmTestUITests.release.xcconfig"; path = "Pods/Target Support Files/Pods-RealmTestUITests/Pods-RealmTestUITests.release.xcconfig"; sourceTree = "<group>"; };
+ 3737DEBC4EE10859FF700A45 /* Pods_RealmTestUITests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_RealmTestUITests.framework; sourceTree = BUILT_PRODUCTS_DIR; };
+ 61868A30A04AE7E09A7BEEF3 /* Pods-RealmTestTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RealmTestTests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-RealmTestTests/Pods-RealmTestTests.debug.xcconfig"; sourceTree = "<group>"; };
6A4FEE281DF5D6A30089050B /* Podfile */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = Podfile; sourceTree = "<group>"; };
6A7CF6131DF5D5C500D54676 /* RealmTest.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = RealmTest.app; sourceTree = BUILT_PRODUCTS_DIR; };
6A7CF6171DF5D5C500D54676 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
@@ -58,13 +58,13 @@
6A7CF6371DF5D5C500D54676 /* RealmTestUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RealmTestUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
6A7CF63B1DF5D5C500D54676 /* RealmTestUITests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = RealmTestUITests.m; sourceTree = "<group>"; };
6A7CF63D1DF5D5C500D54676 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
- 6D5926F3BAE435ED23587B11 /* Pods-RealmTest.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RealmTest.release.xcconfig"; path = "Pods/Target Support Files/Pods-RealmTest/Pods-RealmTest.release.xcconfig"; sourceTree = "<group>"; };
- 753A81689F5AF4553645F1D6 /* Pods-RealmTestUITests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RealmTestUITests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-RealmTestUITests/Pods-RealmTestUITests.debug.xcconfig"; sourceTree = "<group>"; };
- 7737F5D32420A654DB9935E0 /* Pods_RealmTestUITests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_RealmTestUITests.framework; sourceTree = BUILT_PRODUCTS_DIR; };
- 79E8A80257C3D9FDB1D67D0F /* Pods_RealmTestTests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_RealmTestTests.framework; sourceTree = BUILT_PRODUCTS_DIR; };
- 7A543924CBEA131A8B5BAE93 /* Pods_RealmTest.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_RealmTest.framework; sourceTree = BUILT_PRODUCTS_DIR; };
- B5CDBD318E151151EA2CF963 /* Pods-RealmTest.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RealmTest.debug.xcconfig"; path = "Pods/Target Support Files/Pods-RealmTest/Pods-RealmTest.debug.xcconfig"; sourceTree = "<group>"; };
- EB9DCF9D2455306598199607 /* Pods-RealmTestTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RealmTestTests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-RealmTestTests/Pods-RealmTestTests.debug.xcconfig"; sourceTree = "<group>"; };
+ 7A20EF2FBB2108FDCC769750 /* Pods-RealmTestUITests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RealmTestUITests.release.xcconfig"; path = "Pods/Target Support Files/Pods-RealmTestUITests/Pods-RealmTestUITests.release.xcconfig"; sourceTree = "<group>"; };
+ 9341DF17B6959DCA7D785DC8 /* Pods-RealmTest.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RealmTest.release.xcconfig"; path = "Pods/Target Support Files/Pods-RealmTest/Pods-RealmTest.release.xcconfig"; sourceTree = "<group>"; };
+ A2FFDCB5D5C16CA8676A7E76 /* Pods_RealmTest.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_RealmTest.framework; sourceTree = BUILT_PRODUCTS_DIR; };
+ B10C9C107289AAA2CA398E9E /* Pods_RealmTestTests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_RealmTestTests.framework; sourceTree = BUILT_PRODUCTS_DIR; };
+ BF74E2EA6114416342370291 /* Pods-RealmTest.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RealmTest.debug.xcconfig"; path = "Pods/Target Support Files/Pods-RealmTest/Pods-RealmTest.debug.xcconfig"; sourceTree = "<group>"; };
+ C72B1E08E14D1CAAAECCB3C9 /* Pods-RealmTestUITests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RealmTestUITests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-RealmTestUITests/Pods-RealmTestUITests.debug.xcconfig"; sourceTree = "<group>"; };
+ E3DA3E9F4B42F95B82603E49 /* Pods-RealmTestTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RealmTestTests.release.xcconfig"; path = "Pods/Target Support Files/Pods-RealmTestTests/Pods-RealmTestTests.release.xcconfig"; sourceTree = "<group>"; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
@@ -72,7 +72,7 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
- B9185C406987067581369573 /* Pods_RealmTest.framework in Frameworks */,
+ 423EFB246D4E3BDC8462A88F /* Pods_RealmTest.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -80,7 +80,7 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
- 588C82B88E92FBB3A21A683D /* Pods_RealmTestTests.framework in Frameworks */,
+ 166EFCBC4AF5F7702E375FC8 /* Pods_RealmTestTests.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -88,26 +88,13 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
- 50324231151D783D93F95FCC /* Pods_RealmTestUITests.framework in Frameworks */,
+ 4F9FBDCD5DAAABF5450FA302 /* Pods_RealmTestUITests.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */
/* Begin PBXGroup section */
- 504984F0D92CD7E989E8D034 /* Pods */ = {
- isa = PBXGroup;
- children = (
- B5CDBD318E151151EA2CF963 /* Pods-RealmTest.debug.xcconfig */,
- 6D5926F3BAE435ED23587B11 /* Pods-RealmTest.release.xcconfig */,
- EB9DCF9D2455306598199607 /* Pods-RealmTestTests.debug.xcconfig */,
- 1071BAD235260652D9B75781 /* Pods-RealmTestTests.release.xcconfig */,
- 753A81689F5AF4553645F1D6 /* Pods-RealmTestUITests.debug.xcconfig */,
- 295B5881AB1F217B0DB73CE2 /* Pods-RealmTestUITests.release.xcconfig */,
- );
- name = Pods;
- sourceTree = "<group>";
- };
6A7CF60A1DF5D5C500D54676 = {
isa = PBXGroup;
children = (
@@ -116,8 +103,8 @@
6A7CF63A1DF5D5C500D54676 /* RealmTestUITests */,
6A7CF6141DF5D5C500D54676 /* Products */,
6A4FEE281DF5D6A30089050B /* Podfile */,
- 504984F0D92CD7E989E8D034 /* Pods */,
- A97DC70AF3C30F10328A2D5A /* Frameworks */,
+ A16CEACEC1A032711D389BC2 /* Pods */,
+ AE56D0A3EC80F69017FFF684 /* Frameworks */,
);
sourceTree = "<group>";
};
@@ -173,12 +160,25 @@
path = RealmTestUITests;
sourceTree = "<group>";
};
- A97DC70AF3C30F10328A2D5A /* Frameworks */ = {
+ A16CEACEC1A032711D389BC2 /* Pods */ = {
+ isa = PBXGroup;
+ children = (
+ BF74E2EA6114416342370291 /* Pods-RealmTest.debug.xcconfig */,
+ 9341DF17B6959DCA7D785DC8 /* Pods-RealmTest.release.xcconfig */,
+ 61868A30A04AE7E09A7BEEF3 /* Pods-RealmTestTests.debug.xcconfig */,
+ E3DA3E9F4B42F95B82603E49 /* Pods-RealmTestTests.release.xcconfig */,
+ C72B1E08E14D1CAAAECCB3C9 /* Pods-RealmTestUITests.debug.xcconfig */,
+ 7A20EF2FBB2108FDCC769750 /* Pods-RealmTestUITests.release.xcconfig */,
+ );
+ name = Pods;
+ sourceTree = "<group>";
+ };
+ AE56D0A3EC80F69017FFF684 /* Frameworks */ = {
isa = PBXGroup;
children = (
- 7A543924CBEA131A8B5BAE93 /* Pods_RealmTest.framework */,
- 79E8A80257C3D9FDB1D67D0F /* Pods_RealmTestTests.framework */,
- 7737F5D32420A654DB9935E0 /* Pods_RealmTestUITests.framework */,
+ A2FFDCB5D5C16CA8676A7E76 /* Pods_RealmTest.framework */,
+ B10C9C107289AAA2CA398E9E /* Pods_RealmTestTests.framework */,
+ 3737DEBC4EE10859FF700A45 /* Pods_RealmTestUITests.framework */,
);
name = Frameworks;
sourceTree = "<group>";
@@ -190,12 +190,12 @@
isa = PBXNativeTarget;
buildConfigurationList = 6A7CF6401DF5D5C500D54676 /* Build configuration list for PBXNativeTarget "RealmTest" */;
buildPhases = (
- E9CED28B73C7958BCFFD8E17 /* [CP] Check Pods Manifest.lock */,
+ 9C2B040C3A4ED7CCA887369D /* [CP] Check Pods Manifest.lock */,
6A7CF60F1DF5D5C500D54676 /* Sources */,
6A7CF6101DF5D5C500D54676 /* Frameworks */,
6A7CF6111DF5D5C500D54676 /* Resources */,
- DCF3C7B6F3F0C601703ECE25 /* [CP] Embed Pods Frameworks */,
- 19245360536494C98E11637C /* [CP] Copy Pods Resources */,
+ 0E54427C5212B4F87DA0E9C8 /* [CP] Embed Pods Frameworks */,
+ 6E4023AB38EF7D58B4241810 /* [CP] Copy Pods Resources */,
);
buildRules = (
);
@@ -210,12 +210,12 @@
isa = PBXNativeTarget;
buildConfigurationList = 6A7CF6431DF5D5C500D54676 /* Build configuration list for PBXNativeTarget "RealmTestTests" */;
buildPhases = (
- E2098A4CB855E5FA21B4FEFF /* [CP] Check Pods Manifest.lock */,
+ 2F41F96CA346DD7FD2A4DBC2 /* [CP] Check Pods Manifest.lock */,
6A7CF6281DF5D5C500D54676 /* Sources */,
6A7CF6291DF5D5C500D54676 /* Frameworks */,
6A7CF62A1DF5D5C500D54676 /* Resources */,
- 4F8B687AB24DD5162EA164C8 /* [CP] Embed Pods Frameworks */,
- D6C96065341EABF4DE111B6B /* [CP] Copy Pods Resources */,
+ 4781B4A18C4005F5D65FBB01 /* [CP] Embed Pods Frameworks */,
+ 65C8392B3D36636C3A722E10 /* [CP] Copy Pods Resources */,
);
buildRules = (
);
@@ -231,12 +231,12 @@
isa = PBXNativeTarget;
buildConfigurationList = 6A7CF6461DF5D5C500D54676 /* Build configuration list for PBXNativeTarget "RealmTestUITests" */;
buildPhases = (
- 11E9F2C45C268928781E152A /* [CP] Check Pods Manifest.lock */,
+ 26C3734F892A2D784122BE53 /* [CP] Check Pods Manifest.lock */,
6A7CF6331DF5D5C500D54676 /* Sources */,
6A7CF6341DF5D5C500D54676 /* Frameworks */,
6A7CF6351DF5D5C500D54676 /* Resources */,
- C383F0D3CCA040ED7B5418FA /* [CP] Embed Pods Frameworks */,
- BE3242C6C970C858DED0E6C8 /* [CP] Copy Pods Resources */,
+ 88B7BB64DA68A057774FCAFA /* [CP] Embed Pods Frameworks */,
+ CB679901377B321BC1797712 /* [CP] Copy Pods Resources */,
);
buildRules = (
);
@@ -325,82 +325,82 @@
/* End PBXResourcesBuildPhase section */
/* Begin PBXShellScriptBuildPhase section */
- 11E9F2C45C268928781E152A /* [CP] Check Pods Manifest.lock */ = {
+ 0E54427C5212B4F87DA0E9C8 /* [CP] Embed Pods Frameworks */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
- name = "[CP] Check Pods Manifest.lock";
+ name = "[CP] Embed Pods Frameworks";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
- shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n";
+ shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-RealmTest/Pods-RealmTest-frameworks.sh\"\n";
showEnvVarsInLog = 0;
};
- 19245360536494C98E11637C /* [CP] Copy Pods Resources */ = {
+ 26C3734F892A2D784122BE53 /* [CP] Check Pods Manifest.lock */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
- name = "[CP] Copy Pods Resources";
+ name = "[CP] Check Pods Manifest.lock";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
- shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-RealmTest/Pods-RealmTest-resources.sh\"\n";
+ shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n";
showEnvVarsInLog = 0;
};
- 4F8B687AB24DD5162EA164C8 /* [CP] Embed Pods Frameworks */ = {
+ 2F41F96CA346DD7FD2A4DBC2 /* [CP] Check Pods Manifest.lock */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
- name = "[CP] Embed Pods Frameworks";
+ name = "[CP] Check Pods Manifest.lock";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
- shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-RealmTestTests/Pods-RealmTestTests-frameworks.sh\"\n";
+ shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n";
showEnvVarsInLog = 0;
};
- BE3242C6C970C858DED0E6C8 /* [CP] Copy Pods Resources */ = {
+ 4781B4A18C4005F5D65FBB01 /* [CP] Embed Pods Frameworks */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
- name = "[CP] Copy Pods Resources";
+ name = "[CP] Embed Pods Frameworks";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
- shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-RealmTestUITests/Pods-RealmTestUITests-resources.sh\"\n";
+ shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-RealmTestTests/Pods-RealmTestTests-frameworks.sh\"\n";
showEnvVarsInLog = 0;
};
- C383F0D3CCA040ED7B5418FA /* [CP] Embed Pods Frameworks */ = {
+ 65C8392B3D36636C3A722E10 /* [CP] Copy Pods Resources */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
- name = "[CP] Embed Pods Frameworks";
+ name = "[CP] Copy Pods Resources";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
- shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-RealmTestUITests/Pods-RealmTestUITests-frameworks.sh\"\n";
+ shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-RealmTestTests/Pods-RealmTestTests-resources.sh\"\n";
showEnvVarsInLog = 0;
};
- D6C96065341EABF4DE111B6B /* [CP] Copy Pods Resources */ = {
+ 6E4023AB38EF7D58B4241810 /* [CP] Copy Pods Resources */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
@@ -412,10 +412,10 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
- shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-RealmTestTests/Pods-RealmTestTests-resources.sh\"\n";
+ shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-RealmTest/Pods-RealmTest-resources.sh\"\n";
showEnvVarsInLog = 0;
};
- DCF3C7B6F3F0C601703ECE25 /* [CP] Embed Pods Frameworks */ = {
+ 88B7BB64DA68A057774FCAFA /* [CP] Embed Pods Frameworks */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
@@ -427,10 +427,10 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
- shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-RealmTest/Pods-RealmTest-frameworks.sh\"\n";
+ shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-RealmTestUITests/Pods-RealmTestUITests-frameworks.sh\"\n";
showEnvVarsInLog = 0;
};
- E2098A4CB855E5FA21B4FEFF /* [CP] Check Pods Manifest.lock */ = {
+ 9C2B040C3A4ED7CCA887369D /* [CP] Check Pods Manifest.lock */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
@@ -445,19 +445,19 @@
shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n";
showEnvVarsInLog = 0;
};
- E9CED28B73C7958BCFFD8E17 /* [CP] Check Pods Manifest.lock */ = {
+ CB679901377B321BC1797712 /* [CP] Copy Pods Resources */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
- name = "[CP] Check Pods Manifest.lock";
+ name = "[CP] Copy Pods Resources";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
- shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n";
+ shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-RealmTestUITests/Pods-RealmTestUITests-resources.sh\"\n";
showEnvVarsInLog = 0;
};
/* End PBXShellScriptBuildPhase section */
@@ -616,7 +616,7 @@
};
6A7CF6411DF5D5C500D54676 /* Debug */ = {
isa = XCBuildConfiguration;
- baseConfigurationReference = B5CDBD318E151151EA2CF963 /* Pods-RealmTest.debug.xcconfig */;
+ baseConfigurationReference = BF74E2EA6114416342370291 /* Pods-RealmTest.debug.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
DEVELOPMENT_TEAM = T864D3RXRZ;
@@ -629,7 +629,7 @@
};
6A7CF6421DF5D5C500D54676 /* Release */ = {
isa = XCBuildConfiguration;
- baseConfigurationReference = 6D5926F3BAE435ED23587B11 /* Pods-RealmTest.release.xcconfig */;
+ baseConfigurationReference = 9341DF17B6959DCA7D785DC8 /* Pods-RealmTest.release.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
DEVELOPMENT_TEAM = T864D3RXRZ;
@@ -642,7 +642,7 @@
};
6A7CF6441DF5D5C500D54676 /* Debug */ = {
isa = XCBuildConfiguration;
- baseConfigurationReference = EB9DCF9D2455306598199607 /* Pods-RealmTestTests.debug.xcconfig */;
+ baseConfigurationReference = 61868A30A04AE7E09A7BEEF3 /* Pods-RealmTestTests.debug.xcconfig */;
buildSettings = {
BUNDLE_LOADER = "$(TEST_HOST)";
DEVELOPMENT_TEAM = T864D3RXRZ;
@@ -656,7 +656,7 @@
};
6A7CF6451DF5D5C500D54676 /* Release */ = {
isa = XCBuildConfiguration;
- baseConfigurationReference = 1071BAD235260652D9B75781 /* Pods-RealmTestTests.release.xcconfig */;
+ baseConfigurationReference = E3DA3E9F4B42F95B82603E49 /* Pods-RealmTestTests.release.xcconfig */;
buildSettings = {
BUNDLE_LOADER = "$(TEST_HOST)";
DEVELOPMENT_TEAM = T864D3RXRZ;
@@ -670,7 +670,7 @@
};
6A7CF6471DF5D5C500D54676 /* Debug */ = {
isa = XCBuildConfiguration;
- baseConfigurationReference = 753A81689F5AF4553645F1D6 /* Pods-RealmTestUITests.debug.xcconfig */;
+ baseConfigurationReference = C72B1E08E14D1CAAAECCB3C9 /* Pods-RealmTestUITests.debug.xcconfig */;
buildSettings = {
DEVELOPMENT_TEAM = T864D3RXRZ;
INFOPLIST_FILE = RealmTestUITests/Info.plist;
@@ -683,7 +683,7 @@
};
6A7CF6481DF5D5C500D54676 /* Release */ = {
isa = XCBuildConfiguration;
- baseConfigurationReference = 295B5881AB1F217B0DB73CE2 /* Pods-RealmTestUITests.release.xcconfig */;
+ baseConfigurationReference = 7A20EF2FBB2108FDCC769750 /* Pods-RealmTestUITests.release.xcconfig */;
buildSettings = {
DEVELOPMENT_TEAM = T864D3RXRZ;
INFOPLIST_FILE = RealmTestUITests/Info.plist;
pod deintegrate && pod install it's work for me, thanks!!
@jpsim Since this is a 100% clean "just created" project, I don't see how it could possibly be "incorrectly configured". But, with that being said, I executed the pod deintegrate && pod install and got the same thing.
So, now I'll ask a couple of questions of you, since you were able to get it to work:
I'm also on CocoaPods 1.1.1 and Xcode 8.1.
Then what else is there to try.
Realm v2.1.0 works fine for me, v2.1.1 fails. This is even from a clean just created project with only a single pod (being 'Realm'). I've been using Realm for over a year with no problems, and have been heavily using Cocoapods without problems for over 3 years.
Then what else is there to try.
I'm confused. I thought you said that running pod deintegrate && pod install fixed it for you. Are you referring to a different project for which those steps didn't fix the issue? If so, if you share that project we could investigate what may be causing Xcode not to find the headers.
Maybe you can inspect the diff between Realm 2.1.0 and 2.1.1 to see if anything jumps out as potentially causing this problem? https://github.com/realm/realm-cocoa/compare/v2.1.0...v2.1.1
I've been using Realm for over a year with no problems, and have been heavily using Cocoapods without problems for over 3 years.
I'm glad to hear it!
No, someone else mentioned that it fixed it for them. I haven't been able
to do anything with Realm 2.1.1.
I'll try comparing the Podfiles and see what the difference is.
--
Darren Ehlers
On December 6, 2016 at 1:20:52 PM, JP Simard ([email protected])
wrote:
Then what else is there to try.
I'm confused. I thought you said that running pod deintegrate && pod
install fixed it for you. Are you referring to a different project for
which those steps didn't fix the issue? If so, if you share that project we
could investigate what may be causing Xcode not to find the headers.Maybe you can inspect the diff between Realm 2.1.0 and 2.1.1 to see if
anything jumps out as potentially causing this problem? v2.1.0...v2.1.1
https://github.com/realm/realm-cocoa/compare/v2.1.0...v2.1.1I've been using Realm for over a year with no problems, and have been
heavily using Cocoapods without problems for over 3 years.I'm glad to hear it!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/realm/realm-cocoa/issues/4408#issuecomment-265245440,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ACMkFegXckQFEZRINQgH6MQMWCJaf2ttks5rFbWUgaJpZM4LDa46
.
I'll try comparing the Podfiles and see what the difference is.
Oh, your podfile changed? That could be it. Unless you're referring to Realm's _podspecs_. Although they didn't change between 2.1.0 and 2.1.1.
Sorry, i was referring to the podspecs.
I have multiple projects which all Exhibit the exact same problem, which is
why i created a simple project to demonstrate the issue.
--
Darren Ehlers
On December 6, 2016 at 1:40:14 PM, JP Simard ([email protected])
wrote:
I'll try comparing the Podfiles and see what the difference is.
Oh, your podfile changed? That could be it. Unless you're referring to
Realm's podspecs. Although they didn't change between 2.1.0 and 2.1.1.—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/realm/realm-cocoa/issues/4408#issuecomment-265250974,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ACMkFREZR23UGndv6RH8hW23ftHJXFhrks5rFboegaJpZM4LDa46
.
I see. I appreciate you taking the time to create a repro case, although it must be sufficiently different from your "real" projects considering that the pod deintegrate step worked for one but not the others.
No, nothing has worked for any of my projects!
Someone else mentioned that your disintegrate suggestion solved their
problem. Nothing has worked for me at all with v2.1.1
--
Darren Ehlers
On December 6, 2016 at 1:56:34 PM, JP Simard ([email protected])
wrote:
I see. I appreciate you taking the time to create a repro case, although
it must be sufficiently different from your "real" projects considering
that the pod deintegrate step worked for one but not the others.—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/realm/realm-cocoa/issues/4408#issuecomment-265255592,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ACMkFS3VSEzrzX5x7EKpZH8RWoGe7_80ks5rFb3ygaJpZM4LDa46
.
Yes, you've mentioned that. I look forward to getting more information from you such as a project that 1) reproduces the CocoaPods build failures and 2) isn't fixed by running pod deintegrate && pod install.
The zip file I originally sent you fails. It reproduces the CocoaPods build failures and isn't fixed by running pod deintegrate && pod install.
I don't know where the confusion is, but EVERY project on my system fails, even when running pod deintegrate && pod install.
Attached is the original RealmTest.zip. Unzipping this, and running pod deintegrate && pod install gives me what is in the second RealmTestAfterDeintegrate.zip.
The problem exists before and after.
Thanks for sharing that, it helps. For some reason, your RealmTestOriginal.zip's Pods/Realm/ directory doesn't include core/ or include/. So the pod install process isn't behaving as expected.
Could you please post the complete console output from running rm -rf Pods && pod deintegrate && pod install --verbose? Thanks!
Darrens-MacBook-Pro:RealmTest darrenehlers$ rm -rf Pods && pod deintegrate && pod install --verbose
Deintegrating `RealmTest.xcodeproj`
Deleted 1 'Copy Pods Resources' build phases.
Deleted 1 'Check Pods Manifest.lock' build phases.
Deleted 1 'Embed Pods Frameworks' build phases.
- Pods_RealmTest.framework
- Pods-RealmTest.debug.xcconfig
- Pods-RealmTest.release.xcconfig
Deleted 1 'Copy Pods Resources' build phases.
Deleted 1 'Check Pods Manifest.lock' build phases.
Deleted 1 'Embed Pods Frameworks' build phases.
- Pods_RealmTestTests.framework
- Pods-RealmTestTests.debug.xcconfig
- Pods-RealmTestTests.release.xcconfig
Deleted 1 'Copy Pods Resources' build phases.
Deleted 1 'Check Pods Manifest.lock' build phases.
Deleted 1 'Embed Pods Frameworks' build phases.
- Pods_RealmTestUITests.framework
- Pods-RealmTestUITests.debug.xcconfig
- Pods-RealmTestUITests.release.xcconfig
Deleting Pod file references from project
- Pods_RealmTest.framework
- Pods_RealmTestTests.framework
- Pods_RealmTestUITests.framework
Deleted 1 empty `Pods` groups from project.
Deleted 1 empty `Frameworks` groups from project.
Removing `Pods` directory.
Project has been deintegrated. No traces of CocoaPods left in project.
Note: The workspace referencing the Pods project still remains.
Preparing
Analyzing dependencies
Inspecting targets to integrate
Using `ARCHS` setting to build architectures of target `Pods-RealmTest`: (``)
Using `ARCHS` setting to build architectures of target `Pods-RealmTestTests`:
(``)
Using `ARCHS` setting to build architectures of target
`Pods-RealmTestUITests`: (``)
Finding Podfile changes
- Realm
Resolving dependencies of `Podfile`
Comparing resolved specification to the sandbox manifest
A Realm
Downloading dependencies
-> Installing Realm (2.1.1)
> Copying Realm from
`/Users/darrenehlers/Library/Caches/CocoaPods/Pods/Release/Realm/2.1.1-a5595`
to `Pods/Realm`
- Running pre install hooks
Generating Pods project
- Creating Pods project
- Adding source files to Pods project
- Adding frameworks to Pods project
- Adding libraries to Pods project
- Adding resources to Pods project
- Linking headers
- Installing targets
- Installing target `Realm` iOS 8.0
- Generating Info.plist file at `Pods/Target Support
Files/Realm/Info.plist`
- Copying module map file to `Pods/Target Support
Files/Realm/Realm.modulemap`
- Installing target `Pods-RealmTest` iOS 10.1
- Generating Info.plist file at `Pods/Target Support
Files/Pods-RealmTest/Info.plist`
- Generating module map file at `Pods/Target Support
Files/Pods-RealmTest/Pods-RealmTest.modulemap`
- Generating umbrella header at `Pods/Target Support
Files/Pods-RealmTest/Pods-RealmTest-umbrella.h`
- Installing target `Pods-RealmTestTests` iOS 10.1
- Generating Info.plist file at `Pods/Target Support
Files/Pods-RealmTestTests/Info.plist`
- Generating module map file at `Pods/Target Support
Files/Pods-RealmTestTests/Pods-RealmTestTests.modulemap`
- Generating umbrella header at `Pods/Target Support
Files/Pods-RealmTestTests/Pods-RealmTestTests-umbrella.h`
- Installing target `Pods-RealmTestUITests` iOS 10.1
- Generating Info.plist file at `Pods/Target Support
Files/Pods-RealmTestUITests/Info.plist`
- Generating module map file at `Pods/Target Support
Files/Pods-RealmTestUITests/Pods-RealmTestUITests.modulemap`
- Generating umbrella header at `Pods/Target Support
Files/Pods-RealmTestUITests/Pods-RealmTestUITests-umbrella.h`
- Running post install hooks
- Writing Xcode project file to `Pods/Pods.xcodeproj`
- Generating deterministic UUIDs
- Writing Lockfile in `Podfile.lock`
- Writing Manifest in `Pods/Manifest.lock`
Integrating client project
Integrating target `Pods-RealmTest` (`RealmTest.xcodeproj` project)
Adding Build Phase '[CP] Embed Pods Frameworks' to project.
Adding Build Phase '[CP] Copy Pods Resources' to project.
Adding Build Phase '[CP] Check Pods Manifest.lock' to project.
Integrating target `Pods-RealmTestTests` (`RealmTest.xcodeproj` project)
Adding Build Phase '[CP] Embed Pods Frameworks' to project.
Adding Build Phase '[CP] Copy Pods Resources' to project.
Adding Build Phase '[CP] Check Pods Manifest.lock' to project.
Integrating target `Pods-RealmTestUITests` (`RealmTest.xcodeproj` project)
Adding Build Phase '[CP] Embed Pods Frameworks' to project.
Adding Build Phase '[CP] Copy Pods Resources' to project.
Adding Build Phase '[CP] Check Pods Manifest.lock' to project.
- Running post install hooks
- cocoapods-stats from
`/Users/darrenehlers/.rvm/gems/ruby-2.2.3/gems/cocoapods-stats-1.0.0/lib/cocoapods_plugin.rb`
Sending stats
- Realm, 2.1.1
-> Pod installation complete! There is 1 dependency from the Podfile and 1 total pod installed.
Darrens-MacBook-Pro:RealmTest darrenehlers$
ok, what I think is happening is that at some point, the pod install failed, but CocoaPods still committed the Realm pod to its caches directory, and now every time you install Realm, it uses this invalid cached version of the pod. Please try this and post the complete output of the command again:
$ rm -rf /Users/darrenehlers/Library/Caches/CocoaPods/Pods/Release/Realm && pod deintegrate && pod install --verbose
Thanks.
This would also explain why you're only getting this issue with 2.1.1, since CocoaPods caches pods per-version.
Okay! That explains it. I didn't realize the pods were cached like that (make mental note).
And that appears to have fixed it! I would consider this issue resolved...
Glad to hear it!
If you do see CocoaPods caching a failed install again in the future, I'd appreciate it if you could take note of what happened and file an issue with CocoaPods, as this is something that shouldn't happen: https://github.com/CocoaPods/CocoaPods/issues/new
Hi just letting you know this command line
$ rm -rf /Users/darrenehlers/Library/Caches/CocoaPods/Pods/Release/Realm && pod deintegrate && pod install --verbose
saved my ass as well
thanks