Comments (5)
btw, work-around is setting:
export DYLD_FRAMEWORK_PATH=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks:/Applications/Xcode.app/Contents/OtherFramework
but it would be nice it it behaved nicely with the existing xcode-select/DEVELOPER_DIR mechanism
from ios-sim.
Awesome - thanks, I'll try to get to this soon, either that if you want to send a pull request that will be great as well
from ios-sim.
Unfortunately I'm not exactly sure how to dynamically load objective C framework APIs yet. Would take me at least a couple days research (If I get some time off I'll try, also I'm a github newb, more of a perforce person) btw, here's what I'm currently using in my bash build scripts after manually setting DEVELOPER_DIR based on the xcode selected:
export DYLD_FRAMEWORK_PATH=${DEVELOPER_DIR}/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks:$(dirname "${DEVELOPER_DIR}")/OtherFrameworks
Also, if you want an even BETTER solution you can enumerate the versions of xcode installed and list ALL the available simulators/sdks for ALL xcode apps installed and then enumerate through all the available frameworks :)
(see below python script) Actually, what I would do is re-write ios-sim in python using ctypes, it would be cooler and be even better for my workflows, hehe :)
def findXCodeVersions(verbose=False):
plist = plistlib.readPlistFromString(runCMD("system_profiler", ["-xml", "SPDeveloperToolsDataType"], verbose=verbose))[0]
result = { }
for item in plist["_items"]:
version = item["spdevtools_version"].split(" ")[0]
app_path = dev_path = item["spdevtools_path"]
if not dev_path.endswith("Developer"): dev_path += "/Contents/Developer"
sdks = item["spdevtools_sdks"]
iphonesdks = osxsdks = []
if "spiphoneos_sdks" in sdks:
iphonesdks = list(sdks["spiphoneos_sdks"].keys())
elif "spios_sdks" in sdks:
iphonesdks = list(sdks["spios_sdks"].keys())
if "spmacosx_sdks" in sdks:
osxsdks = list(sdks["spmacosx_sdks"].keys())
elif "sposx_sdks" in sdks:
osxsdks = list(sdks["sposx_sdks"].keys())
result[version] = { "apppath" : app_path, "devpath" : dev_path, "iossdks" : iphonesdks, "osxsdks" : osxsdks }
return result
Thanks for the quick response btw!
from ios-sim.
FWIW, we had this same issue come up in xctool.
Here's how we solved it --
https://github.com/facebook/xctool/blob/master/xctool/xctool/main.m#L25
from ios-sim.
With Xcode 5.1, iPhoneSimulatorRemoteClient has been removed, so ios-sim is using DVTiPhoneSimulatorRemoteClient now with v1.9.0
from ios-sim.
Related Issues (20)
- No devices in cordova project HOT 10
- convert module to oclif
- complete coverage for command `install` HOT 1
- complete coverage for command `launch`
- complete coverage for command `start` HOT 1
- List empty of devices simulator with Xcode 10.2 HOT 60
- Log more information about simulator being launched
- List empty of devices simulator with Xcode 11 HOT 3
- Error: Cannot read property 'toLowerCase' of undefined
- --devicetypeid was not specified, using first available device: null. HOT 4
- Add support to non binary Info.plist files
- How to run ios-sim all command through python script
- TypeError: Cannot read property 'devicetypes' of undefined HOT 8
- Unable to install the application in simulator HOT 5
- Unhandled Error: launch.js line 51. this.log undefined. HOT 4
- Custom simulators not appearing in showdevicetypes
- BUG: `npm list` errors on this module on global mode
- Bump simctl to 2.0.1 for security updates
- remove appveyor and travis ci, use Github Actions HOT 2
- node.js 16 test failures HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ios-sim.