you don't have to produce it first, but you must design it first.
before you ask the other party to help you design, you must sign a contract to stipulate the confidentiality measures and the ownership of the patent application right.
according to the provisions of the patent law, if there is no special agreement in the contract, the right to apply for the technology that you commissioned others to process or design belongs to the other party.