备忘:iPhone SDK 免签名编译的设置

修改文件 /Developer/Platforms/iPhoneOS.platform/Info.plist, 共两处需要修要,如下所示:
...
                <key>ARCHS</key>
                <string>armv6</string>
                <key>CODE_SIGN_CONTEXT_CLASS</key>
                <string>XCiPhoneOSCodeSignContext</string>
                <key>COMPRESS_PNG_FILES</key>
                <string>YES</string>
                <key>DEBUG_INFORMATION_FORMAT</key>
                <string>dwarf-with-dsym</string>
                <key>EMBEDDED_PROFILE_NAME</key>
                <string>embedded.mobileprovision</string>
                <key>INFOPLIST_OUTPUT_FORMAT</key>
                <string>binary</string>
                <key>NATIVE_ARCH</key>
                <string>armv6</string>
                <key>PLIST_FILE_OUTPUT_FORMAT</key>
                <string>binary</string>
        /**************************************************/
	        <key>PROVISIONING_PROFILE_ALLOWED</key>
                <string>NO</string>
                <key>PROVISIONING_PROFILE_REQUIRED</key>
                <string>NO</string>
        /**************************************************/        
	        <key>SDKROOT</key>
                <string>iphoneos3.0</string>
                <key>STRINGS_FILE_OUTPUT_ENCODING</key>
                <string>binary</string>

... 

                <key>CODE_SIGN_CONTEXT_CLASS</key>
                <string>XCiPhoneOSCodeSignContext</string>
                <key>DEBUG_INFORMATION_FORMAT</key>
                <string>dwarf-with-dsym</string>
                <key>EMBEDDED_PROFILE_NAME</key>
                <string>embedded.mobileprovision</string>
                <key>SDKROOT</key>
                <string>iphoneos3.0</string>
        /**************************************************/
                <key>PROVISIONING_PROFILE_ALLOWED</key>
                <string>NO</string>
                <key>PROVISIONING_PROFILE_REQUIRED</key>
                <string>NO</string>
        /**************************************************/



根据 XCode 的版本不同,还需要修改一个文件:
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.0.sdk/SDKSettings.plist
修改该文件中所有*_REQUIRED定义的行,把对应的值,即下一行的值改成NO, 保存退出。

你可能感兴趣的:(xml,xcode)