Index: Portfile
===================================================================
--- Portfile	(revision 113069)
+++ Portfile	(working copy)
@@ -23,6 +23,8 @@
                     port:libxml2 \
                     port:swig-python
 
+patchfiles          patch-iterator.diff
+
 configure.args-append   -DENABLE_CYTHON=OFF
 
 use_parallel_build  no
Index: files/patch-iterator.diff
===================================================================
--- files/patch-iterator.diff	(revision 0)
+++ files/patch-iterator.diff	(working copy)
@@ -0,0 +1,13 @@
+Upstream: https://github.com/libimobiledevice/libplist/commit/c56c8103f51c20c6fcf99e8bc9d83c380f503a1b
+
+--- src/Dictionary.cpp
++++ src/Dictionary.cpp
+@@ -151,7 +151,7 @@ Node* Dictionary::operator[](const std::string& key)
+         _map[key] = clone;
+         return _map.find(key);
+     }
+-    return iterator(NULL);
++    return iterator(this->_map.end());
+ }
+ 
+ void Dictionary::Remove(Node* node)
