简体   繁体   中英

Merge two xcode projects and run based on condition

I want to merge two Xcode projects.

I have two Xcode projects Project A and Project B. Both run fine separately and both have different concepts. Now I want to combine this two projects and run based on their respective condition.

What I want is when I am connected to WIFI AI want to run project A(Target of A) and when I am connected two WIFI BI want to run project B(Target of B).

I have tried workspace in that I have added both projects , but now i don't know what I have to do.

Please help me solve this issue.

you can't have xcode set up to build&run a specific target based on the wifi.


you could set up a construct using OSX Locations feature and some app that executes certain actions based on your location but that wouldn't be with xcode at all

eg

1. - if location == office then make a symbolic link from WORKING_PROCT to folder A - if location == home then make a symbolic link from WORKING_PROCT to folder B

  1. close xcode if A or B is open

  2. open WORKING_PROJECT with xcode

==> but that would best be discussed on superuser

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM