Apple is nearing the completion of a critical new software tool for app developers that would step up competition with Microsoft. The company has been working on the tool for the last year as part of the next major version of Xcode.