8000 Add specific iOS simulator destination · libgit2/objective-git@2712c2a · GitHub
[go: up one dir, main page]

Skip to content

Commit 2712c2a

Browse files
committed
Add specific iOS simulator destination
Specifying the destionation works around the following issue with xctool. Can also hard-code the architecture, but this seems more future-proof. ``` Failed to query the list of test cases in the test bundle: 2015-08-24 10:57:11.740 sim[50821:2746840] /Applications/Xcode6.4.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/sim: No simulator devices appear to be running. Setting data directories to /var/empty. 2015-08-24 10:57:11.741 sim[50821:2746840] DYLD_INSERT_LIBRARIES contains possible bad values. Caller beware: /usr/local/Cellar/xctool/0.2.4/libexec/lib/otest-query-lib-ios.dylib dlopen(/Volumes/DerivedData/ObjectiveGitFramework-drtqacfhlqybdcdpqayztrrwneun/Build/Products/Debug-iphonesimulator/ObjectiveGit-iOSTests.xctest/ObjectiveGit-iOSTests, 1): Library not loaded: @rpath/ObjectiveGit.framework/ObjectiveGit Referenced from: /Volumes/DerivedData/ObjectiveGitFramework-drtqacfhlqybdcdpqayztrrwneun/Build/Products/Debug-iphonesimulator/ObjectiveGit-iOSTests.xctest/ObjectiveGit-iOSTests Reason: no suitable image found. Did find: /Volumes/DerivedData/ObjectiveGitFramework-drtqacfhlqybdcdpqayztrrwneun/Build/Products/Debug-iphonesimulator/ObjectiveGit.framework/ObjectiveGit: mach-o, but wrong architecture ``` Indeed, the "wrong architecture" message is correct as the framework was built for a different architecture than the test binary: ``` lipo -info ObjectiveGit.framework/ObjectiveGit ObjectiveGit-iOSTests.xctest/ObjectiveGit-iOSTests 2015-08-24 11:03 Non-fat file: ObjectiveGit.framework/ObjectiveGit is architecture: i386 Non-fat file: ObjectiveGit-iOSTests.xctest/ObjectiveGit-iOSTests is architecture: x86_64 ```
1 parent 94971e1 commit 2712c2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

script/cibuild

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ build_scheme ()
123123
if [ "$awkstatus" -eq "1" ]
124124
then
125125
# SDK not found, try for iphonesimulator.
126-
sdkflag="-sdk iphonesimulator"
126+
sdkflag='-sdk iphonesimulator -destination "platform=iOS Simulator,name=iPhone 5"'
127127

128128
# Determine whether the unit tests will run with iphonesimulator
129129
run_xctool $sdkflag -scheme "$scheme" run-tests | parse_build

0 commit comments

Comments
 (0)
0