I am solving a bug caused by path comparison using -[NSString isEqualToString:]
(lldb) po aString
/var/mobile/Containers/Bundle/Application/DE14BC26-B07D-46C2-89BF-E800231BAD1F/a.app/b.bundle/epub/OEBPS/Text/02.xhtml
(lldb) po bString
/private/var/mobile/Containers/Bundle/Application/DE14BC26-B07D-46C2-89BF-E800231BAD1F/a.app/b.bundle/epub/OEBPS/Text/02.xhtml
[aString isEqualToString:bString]
would yield NO
.
But since /var is a symlink to /private/var, they are referring to the same file. May I know the correct way to fix this?